Thursday, December 1, 2011

Fix "Can't connect to local MySQL server through socket '/tmp/mysql.sock'"

If you use Zend server or MAMP and when you trying to connect to MySQL and got this error above just check the path to mysql.sock and link it in /tmp/ folder like this:

sudo ln -s /usr/local/zend/mysql/tmp/mysql.sock /tmp/mysql.sock







http://www.zendcasts.com/forum/topic/63/cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/