MySQL Connection Trouble

admin

Administrator
Staff member
Arrrrgh!

I have set up a database in MySQL and have allocated the necessary privileges using a GRANT statement (setting the host to "%" for the username I'm using to connect). I can log in to mysql directly through the UNIX prompt using this username/password and access the database I need to access.

However, when I use a mysql_connect() statement through a PHP script, I get the following error:

Warning: MySQL Connection Failed: Access denied for user: <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->' (Using password: YES) in /usr/local/etc/httpd/htdocs/taskNet_test.php on line 2

I see no reason for this as it's obvious that the script IS finding MySQL, it's just denying access to the user I've established.

PLEASE HELP!!!
 
Back
Top