I recently upgraded to Mountain Lion OSX and my already working MySql has stopped working. When I try to run MySql in terminal all I get is the following error?
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Has anyone else faced the same problem?
I faced the same problem. The error is caused by MySQL not running. The Mac OS X installer removes the autostart item for MySQL. Here is what I've done:
sudo mv oldversion/data newversion/data
command. If you are using PHP and PHPMyAdmin, yopu'll have to install the mcrypt
extension. Here is a step-by-step guide for that: http://remonpel.nl/2012/01/adding-mcrypt-to-your-osx-based-php-server-setup/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.