On Fri, Jun 27, 2008 at 7:48 AM, Suresh Kumar <[EMAIL PROTECTED]> wrote:
> Hi > i have 2 linux servers, both of them are suse linux > in one server (server-1 -192.168.1.227 ) i have the php-apache files > and in the second server (server-2 192.8.200) i have the mysql server > > when i try connecting the mysql server on server-2 ( 192.168.8.200) from > my > server-1 (192.168.1.227) > i get the following error > > *Warning: mysql_connect(): Can't connect to MySQL server on '192.168.8.200 > ' > (4) in /srv/www/htdocs/../../dbtest.php on line 5 Not able to connect > Error Can't connect to MySQL server on '192.168.8.200' (4)Cannot select > DB!* > > the code in dbtest.php is (the username password for mysql db is root/"") > > > $dbconnect =mysql_connect("192.168.8.200", "root", ""); 1, check whether you could ping the mysql server 2. if you could through step1 then check mysql privilege for the user cheers Ravi Jaya _______________________________________________ To unsubscribe, email [EMAIL PROTECTED] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc