MySQL Forums
Forum List  »  PHP

Re: 'reading initial communication packet', system error: 111
Posted by: Jim Smith
Date: June 04, 2007 08:56PM

I'm running Ubuntu Feisty Fawn.
I was able to resolve this by using the term "localhost" rather than the loopback IP or server name in the mysql_connect() function. Took me a bit to stumble on it, I suspect if you are accessing mysql from php and both reside on the same server you must use localhost as the server name. I noted during testing that localhost made use of the mysql.sock interface rather than the TCP/IP socket. Anyway, using localhost solved it for me.

Options: ReplyQuote


Subject
Written By
Posted
Re: 'reading initial communication packet', system error: 111
June 04, 2007 08:56PM


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.