This line will make it so ONLY the localhost can connect to the database. A great security feature, but this prevents anyone trying to connect outside the server not to see a database running. I commented out the line, restarted mysqld, and worked like a charm. ...
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
(running script on command prompt) -- Connecting to localhost... -- Retrieving table structure for table stock... -- Sending SELECT query... -- Retrieving rows... ERROR 2003: Can't connect to MySQL server on 'Host IP' (10060)