Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Bellaire mgbellaire

View GitHub Profile
@mgbellaire
mgbellaire / drupal_mysql_no-such-file-or-directory
Last active Jan 3, 2016
Drupal, Mysql, "No such file or directory"
View 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!
View howToBrewStack.md
  • Hello, World!

      $ echo 'Hello, world!'
    
View howToBrewStack.md
  • Hello, World! $ echo 'Hello, world!'
View gist:4093057
<code>$ This is a command...not really</code>
@mgbellaire
mgbellaire / brewStack.md
Created Nov 3, 2012 — forked from shrop/brewStack.md
brewStack Docs
View brewStack.md

brewStack Update for fresh install

Install steps:

  • Install Homebrew:

      $ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)  
      $ brew install git  
      $ brew update  
      $ brew install drush
    
You can’t perform that action at this time.