Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayluxferro/072e1068a767883a913c7af9f7cbcc1c to your computer and use it in GitHub Desktop.
Save jayluxferro/072e1068a767883a913c7af9f7cbcc1c 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