mysql_connect() is not getting to the correct server

STARHack

New Member
I have a system with a globally open mysql connection to the local server. In one of my files I am opening an additional connection to a remote machine.Wieldly instead of trying to connect to that machine, I get an access denied message from my ISP (it seems to be trying to connect to the database on that machine).I am trying to connect using:\[code\]$cust_conn = mysql_connect($host,'root','##password##');\[/code\]I have tried \[code\]subdomain.domain.com:3306\[/code\], \[code\]subdomain.domain.com\[/code\] and \[code\]ip:3306\[/code\] as the value for \[code\]$host\[/code\].The wierd this is the response i get: Warning: mysql_connect(): Access denied for user 'root'@'my.isp.com' (using password: YES) in /var/www/html/report/module/sql_view.php on line 19 Error: Could not connect to database:Any ideas why this would happen? It seems like for some reason my script is attempting to connect to my ISPs server, instead of the one passed in \[code\]$host\[/code\].
 
Back
Top