Skip to content

Instantly share code, notes, and snippets.

@mgbellaire
Last active January 3, 2016 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgbellaire/8442027 to your computer and use it in GitHub Desktop.
Save mgbellaire/8442027 to your computer and use it in GitHub Desktop.
Drupal, Mysql, "No such file or directory"
PDOException: SQLSTATE[HY000] [2002] No such file or directory in lock_may_be_available() (line 167 of /Users/markbellaire/Sites/work/familydollar/www/includes/lock.inc).
I have Mac with OSX Mavericks installed. And I use brewStack to run my local apache/mysql environment.
I ran "brew doctor" at the command line and that let me know about a link of mysql not being in a directory that it needed to be in. I ran "brew link --overwrite mysql" because the old mysql was linked there at the time.
I stopped and started mysql and lo and behold it started working!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment