andreascreten/wp-cli — Issue #49: mac os x installation, can/t access mysql.sock
Author: gotohr
Created: 2011-12-19 21:23:37+00:00
State: open

after executing wp in wordpress directory:

Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in ~/Sites/wp/wp-includes/wp-db.php on line 1034

my mysqlsock is located in /tmp/mysql.sock

I run mysqld on-demand - open shell and run it for development, it is not always loaded

runing configuration is nginx-1.0.10/php-fpm-5.3.6/mysql-5.5.15