webguync Posted July 21, 2008 Share Posted July 21, 2008 I am getting the following error, and I am not sure why "Lost connection to MySQL server at 'reading initial communication packet', system error: 111" can someone explain this? Link to comment https://forums.phpfreaks.com/topic/115771-please-explain-mysql-connection-error/ Share on other sites More sharing options...
tivrfoa Posted July 21, 2008 Share Posted July 21, 2008 Did you check your host, user, passwd? Check if you are selecting the right database too. Link to comment https://forums.phpfreaks.com/topic/115771-please-explain-mysql-connection-error/#findComment-595186 Share on other sites More sharing options...
tivrfoa Posted July 21, 2008 Share Posted July 21, 2008 Use the term "localhost" rather than the loopback IP or server name in the mysql_connect() function Link to comment https://forums.phpfreaks.com/topic/115771-please-explain-mysql-connection-error/#findComment-595200 Share on other sites More sharing options...
webguync Posted July 21, 2008 Author Share Posted July 21, 2008 I thought I had the right credentials, but I will double-check Link to comment https://forums.phpfreaks.com/topic/115771-please-explain-mysql-connection-error/#findComment-595479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.