Hi all,
I am not able to connect to my database using the IP no of my machine using
the following PHP script. I have recived the error exlained below when I tried
to connect the database. But When I changed the host name as "localhost", I
was able to connect. Please suggest how to overcome the problem.
My machine's IP is 192.168.0.254 and the name is "vinod".
Regards,
Vinod.
<?php
mysql_connect("192.168.0.254","root","vinodb")
or die ("cannot connect to mysqld");
mysql_select_db("bombay")
or die("cannot select database");
?>
The Error message was
Warning: Host 'vinod' is not allowed to connect to this MySQL server in
/var/www/html/depots/temp/bombay/connect.php
on line 2
Warning: MySQL Connection Failed: Host 'vinod' is not allowed to connect to
this MySQL server in /var/www/html/depots/temp/bombay/connect.php on line 2
cannot connect to mysqld
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php