Well, I have MySQL 4.1 up and running on Red Hat 9. I can use the command line interface to connect, run queries, etc. I have PHP up and running as shown by running a phpinfo().
In my PHP page, I have:
$h = mysql_connect($host, $user, $pass);
$d = mysql_select_db($db);
I know the server connection is getting established because $h is true, but I keep getting access denied errors and $d is false. I double-checked the name of the database, and it matches. Also, the user should have rights because I set the user with
GRANT ALL ON * TO username IDENTIFIED BY password
and then changed any 'N' to 'Y' for priveleges in the user table of the mysql database. Thoughts??
In my PHP page, I have:
$h = mysql_connect($host, $user, $pass);
$d = mysql_select_db($db);
I know the server connection is getting established because $h is true, but I keep getting access denied errors and $d is false. I double-checked the name of the database, and it matches. Also, the user should have rights because I set the user with
GRANT ALL ON * TO username IDENTIFIED BY password
and then changed any 'N' to 'Y' for priveleges in the user table of the mysql database. Thoughts??