Created
November 11, 2012 00:19
-
-
Save NapoleonWils0n/4053117 to your computer and use it in GitHub Desktop.
macosx: php pdo set up on mac osx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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