Error 2002, phpMyAdmin can't connect to MySQL in Mac OSX

Posted under » MySQL » Mac on 8 May 2011

Problem could be your php.ini for your Mac is not configured properly. change this line:

mysql.default_socket = /var/mysql/mysql.sock
To:
mysql.default_socket = /tmp/mysql.sock 

btw... in my mac, the location of my php.ini is at /private/etc/php.ini

If all fails, try clear your browser cache and cookies and try again.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css