Women in Technology

Hear us Roar



Article:
  Apache Web-Serving With Mac OS X, Part 5
Subject:   Cannot Connect to mysql.sock
Date:   2002-11-20 20:10:39
From:   anonymous2
If you're having this problem (which I was for days and even after several removal/re-installs) I have seemingly found a solution that corrects the problem.


I ended up making a php.ini file located in /usr/local/lib/ that specifies where the mysql.sock is. I found out that the sockt (at least on my machine) was running in /tmp/mysql.sock


So I configured the php.ini to read as follows:
mysql.default_socket = /tmp/mysql.sock


And voila. Hope this helps.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Cannot Connect to mysql.sock
    2003-04-22 17:53:50  anonymous2 [View]

    couldn't you have just moved the mysql.sock where it wants it!