On Fri, Jun 27, 2008 at 7:48 AM, Suresh Kumar <suresh1876@xxxxxxxxx> 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", "");