[Ilugc] mysql-php server access denied

  • From: suresh1876@xxxxxxxxx (Suresh Kumar)
  • Date: Mon Jun 30 14:11:35 2008

On Mon, Jun 30, 2008 at 12:50 PM, Suresh Kumar <suresh1876@xxxxxxxxx> wrote:



On Mon, Jun 30, 2008 at 11:11 AM, Suresh Kumar <suresh1876@xxxxxxxxx>
wrote:



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:

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


 hi ravi .

 i am not able to ping my linux machine  which has mysql server
ie when i ping 192.168.8.200  from 192.168.1.227
i get "Destination Host Unreachable "

now what to do ?


 how to allow the host (192.168.8.200) ..?


 hi friends
 the problem was solved
by adding the alais name to the eth0 as  192.186.1.33


--
with regards

http://www.discussweb.com
J Suresh Kumar
99400 95614




-- 
with regards

http://www.discussweb.com
J Suresh Kumar
99400 95614

Other related posts: