Page 1 of 1

Conenct to a database from another server

Posted: Mon Jan 17, 2005 12:05 pm
by artfhc
Say my code is in abc.com, but the mysql db is actually located in mysql.def.com. I was trying to connect using mysql_connection(...), but I got these warning messages:

Code: Select all

Warning: MySQL Connection Failed: Access denied for user: 'def@xxx.xxx.xxx.xxx' (Using password: YES) in /home/virtual/site442/fst/var/www/html/login/login.php on line 5
and line 5 is where I use mysql_connection. Please help me. Thankyou so much.

Posted: Mon Jan 17, 2005 12:06 pm
by feyd
the remote database has to be set up correctly to allow/accept remote database connections and queries.. which is quite dangerous and most hosts will not allow it.