On Fri, Jun 27, 2008 at 6:27 PM, Ravi Jaya <ravi.goglobium@xxxxxxxxx> wrote:
On Fri, Jun 27, 2008 at 7:48 AM, Suresh Kumar <suresh1876@xxxxxxxxx>
wrote:
Hifrom
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)
my192.168.8.200
server-1 (192.168.1.227)
i get the following error
*Warning: mysql_connect(): Can't connect to MySQL server on '
'
(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