[Ilugc] mysql-php server access denied
- From: arunvelusamy@xxxxxxx (Arun Velusamy)
- Date: Fri Jun 27 22:17:23 2008
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!*
I ran across the same problem some time back.
Check what is in "bind-address" on your my.cnf file. If it is localhost or
127.0.0.1,
change it to 192.168.8.200. Now restart the mysql server and try it again.
--Arun Velusamy.
Other related posts: