Page 1 of 1

Where do I find my Username, Password

Posted: Wed Jul 17, 2002 10:22 pm
by psn
I want to display a database but im using it on my computer
it asks for a username
and password to show the database here is the errors
Warning: Access denied for user: 'username@localhost' (Using password: YES) in C:\apache\htdocs\planetsim\links.php on line 6

Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\apache\htdocs\planetsim\links.php on line 7

Warning: MySQL: A link to the server could not be established in C:\apache\htdocs\planetsim\links.php on line 7

Warning: MySQL Connection Failed: Access denied for user: 'ODBC@localhost' (Using password: NO) in C:\apache\htdocs\planetsim\links.php on line 8

Warning: MySQL: A link to the server could not be established in C:\apache\htdocs\planetsim\links.php on line 8

Warning: Supplied argument is not a valid MySQL result resource in C:\apache\htdocs\planetsim\links.php on line 9

Posted: Thu Jul 18, 2002 2:24 am
by twigletmac
If the database is on your local machine and you just did the default installation of MySQL then you can probably just do:

Code: Select all

$db_conn = mysql_connect('localhost', 'root', '') or die(mysql_error());
Mac

Posted: Thu Jul 18, 2002 5:05 am
by volka
and have a look at the user managment of mysql
i.e. 4.3.1 GRANT and REVOKE Syntax and
4.3.5 Adding New Users to MySQL