connecting to remote mySQL database

wxdqz

New Member
I'm trying to connect to a remote mySQL database:

mysql_connect("something.abc.def:3306", "someuser", "userpassword");

I tried it with :3306 and without, it won't work.

my PHP error message:

Warning: MySQL Connection Failed: Access denied for user: 'wwwrun@localhost' (Using password: NO) in config.inc.php3 on line 126

Why does PHP use the default apache user (wwwrun) to try to connect to my remote server?

any idea
thanks a lot!
philip
 
Back
Top