when I try to connect to a MySql database using the actual hostname of the server I receive the following message:
mysql_connect(): Access denied for user
‘user’@’ip-…-.internal’ (using password: YES) in
/home/[username]/sendtitles.php on line 8
Namely,
$conn = mysql_connect("localhost",$user,$password); //WORKS!
$conn = mysql_connect($actual_hostname ,$user,$password); //Doesn't work :(
I would appreciate your help on understanding why that happens.
Your root is setup with ACL’s to allow authentication requests from a specific IP/host.
Review: http://dev.mysql.com/doc/refman/5.1/en/adding-users.html