manuvi, Monday, October 14, 2002, 8:04:28 AM, you wrote: maedn> I am not able to connect to my database using the IP no of my machine using maedn> the following PHP script. I have recived the error exlained below when I tried maedn> to connect the database. But When I changed the host name as "localhost", I maedn> was able to connect. Please suggest how to overcome the problem.
maedn> My machine's IP is 192.168.0.254 and the name is "vinod". maedn> <?php maedn> mysql_connect("192.168.0.254","root","vinodb") maedn> or die ("cannot connect to mysqld"); maedn> mysql_select_db("bombay") maedn> or die("cannot select database"); ?> maedn> The Error message was maedn> Warning: Host 'vinod' is not allowed to connect to this MySQL server in /var/www/html/depots/temp/bombay/connect.php maedn> on line 2 maedn> Warning: MySQL Connection Failed: Host 'vinod' is not allowed to connect to maedn> this MySQL server in /var/www/html/depots/temp/bombay/connect.php on line 2 maedn> cannot connect to mysqld Does user 'root' has permission to connect from this host? http://www.mysql.com/doc/en/Access_denied.html -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- 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