Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wierd mysql.sock error

Status
Not open for further replies.

arm207

Programmer
Jun 13, 2006
26
US
hi all,
I'm puzzled. So I've got a few php pages that connect to mysql, and I've placed mysql.sock file in /temp/mysql.sock and updated the configuration files accordingly. So most of my php pages work just fine.

However, I created a page recently and with almost the same code to connect to mysql, I get the following error...

Fatal error: MySQL error: 2002 : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (146) in...

Here's my question, Why do some of my pages understand that mysql.sock is in /temp/ while others don't? Does anyone have any suggestions for why this is? I'm using same username, password, database conn, etc...


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top