Here is the message i get when i use
mysql_connect($ipaddress, $username, $password);
error:
Warning: mysql_connect(): Unknown MySQL Server Host 'db195.perfora.net'
(1) in /oldhome/WWW/wingsofthedawn.org/htdocs/final/Connections/myDB.php
on line 9
Fatal error: Unknown MySQL Server Host 'db195.perfora.net' (1) in
/oldhome/WWW/wingsofthedawn.org/htdocs/final/Connections/myDB.php on line 9
Chris Hope wrote:
Kenneth wrote:
I want to know how you can access a remote mySQL database from a php
script.
mysql_connect($ipaddress, $username, $password);
where $ipaddress is the IP address of the server you want to connect to.
Note that you may not be able to connect to a remote mysql database if
a) the firewall blocks the mysql port b) mysql is not configured to
listen to a port or c) your login doesn't have privileges to connect
remotely.
Also how can I connect to a remote mysql database from mysql
administrator?
Find the configuration dialog and set the hostname to an IP address. See
above notes about why you still may not be able to connect.