| I'm trying to connect to a MySQL database in php. I have a user account and am required to use a password when connecting.
I'm using the statement:
$link = mysql_connect($_mysqlHost, $_mysqlUser, $_mysqlPass);
$_mysqlHost is 'localhost', and user/pass are set correctly. I'm getting the error:
Access denied for user 'XXXX'@'localhost' (using password: NO) But I should be using the password.
Googling led me to think it had something to do with sql.safe_mode, except phpinfo(); says sql.safe_mode is 'off'.
Can anyone point me in the right direction? |