Ben Miller wrote:

Guess that would have been helpful.

Warning: mysql_connect(): Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES) in
/home/virtual/site2/fst/var/www/html/test/global.php on line 74
Couldn't connect to server.


That does not mean that the $host is being replaced by localhost as indicated in your first message. Your grant statement should have been for '[EMAIL PROTECTED]' not just for 'username' as it probably was. If you need more help beyond that you will need to ask in the mysql mailing list.


I am having trouble connecting to a database on another server. I have


the


following for the connection, but it seems to be overriding the value for
the $host variable, and replacing it with localhost. Anyone got any


ideas?




--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to