When I try to connect to my database from a PHP script I get the followng error;
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘user’@‘ip-xxx-xx-xxx-xx.dreamhost.com’ (using password: YES) in /home/.nocturne/user/demo.mydomain.com/inc/conf.php on line 10
On line 10, I’ve written mysql_connect(“db.mydomain.com”, “user”, “password”) or die(“error”);
I can connect locally machine using EMS SQL Manager, because I entered my local ip address in “From what hosts (computers) may myuser connect to these databases”, but my script cannot connect to mysql. “%.dreamhost.com” also exists in “From what hosts (computers) may parskunt connect to these databases” section.
I dont know what to do. Any help will be appriciated.