Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 11, 2012 00:19
Show Gist options
  • Save NapoleonWils0n/4053117 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4053117 to your computer and use it in GitHub Desktop.
macosx: php pdo set up on mac osx
php pdo set up on mac osx
copy /etc/php.ini.default and rename it /etc/php.ini
Edit your /etc/php.ini :
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
; http://php.net/pdo_mysql.default-socket
#pdo_mysql.default_socket=/var/mysql/mysql.sock
pdo_mysql.default_socket=/tmp/mysql.sock
sudo apachectl stop
sudo apachectl start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment