Hi, I am using php to connect to a mysql database for my webpage.
Eg
<?php
$username = "Username";
$password = "password";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username,
$password)
or die("Unable to connect to MySQL");
print "Connected to MySQL";
$selected = mysql_select_db("first_test",$dbh)
or die("Could not select first_test");
// you're going to do lots more here soon
mysql_close($dbh);
?>
Now this all works fine. I create a user with all priviledges, a database called first_test and it connects to the page fine.
However, whenever I turn my computer off and on and try to log in as the user I created. It can not. I have to log in as root.
So, for a user called 'me' I get this error,
ERROR 1045 (28000): Access denied for user 'me'@'localhost' (using password: YES)
So I can't connect to mysql. Anybody know what is up?
Thanks.