MySQL Forums
Forum List  »  MySQL Administrator

Re: ERROR 2003: Can't connect to MySQL server (10060)
Posted by: an0x eghbalz
Date: May 12, 2008 06:00PM

hi.i trying to connect my mysql data base on my host from my local host using this code:
mysql_connect("www.myhost.com", "myUser", "myPass") or die(mysql_error());
echo "db connected <br>";
mysql_select_db("myDB") or die(mysql_error());
echo "db selected <br>";
// Insert a row of information into the table "my_tag"
mysql_query("INSERT INTO my_tag
( my_row ) VALUES ( '$my_row' ) ")
or die(mysql_error());
echo "Data Inserted!";
i run this code under my wamp server on my localhost & having this error:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'www.myhost.com' (10060) in C:\wamp\www\my_page.php on line 125
Can't connect to MySQL server on 'www.myhost.com' (10060)

Options: ReplyQuote


Subject
Written By
Posted
August 24, 2007 01:26AM
October 16, 2007 07:54AM
October 18, 2007 03:44AM
Re: ERROR 2003: Can't connect to MySQL server (10060)
May 12, 2008 06:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.