Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble with mysql usernames and passwords

Status
Not open for further replies.

DrQuincy

Programmer
Jan 28, 2003
5
GB
Hi,

I'm doing a site that is php4 to mysql 3. I can make a connection to mysql but only using mysql_connect("locahost"), i.e. with NO username or password which obviously is a stupid thing to do. The way I manage my MYSQL databse is though phpmyadmin that was an application I received when I got my domain. I can't find anything in their documentation that tells you how to do add them. I am new to MYSQL and PHP so am finding it difficult. Has anyone had experience with this before?

To do it normally through the command line do you add a user to the user table in mysql database and then us the GRANT command to give that user access?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top