localhost

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
sguy
Forum Commoner
Posts: 61
Joined: Sun Aug 10, 2003 2:44 am

localhost

Post by sguy »

how to change the username & password, as i know, "root" & "" are the default username & password.

$Connect = mysql_connect("localhost", "root", "");
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

$Connect = mysql_connect("localhost", "anotherAccount", "thePasswordForThisAccount");
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Open up a database called mysql and there should be a users table.

Add/edit/remove them from there.

See here for more details: http://www.mysql.com/doc/en/Adding_users.html
Post Reply