#50: MySQL suddenly stops working: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I had to reboot my Mac (OS 10.5, Intel MBP). After that, MySQL wouldn't start back up, giving me:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

when trying to call mysql on the command line.




Calling mysql yields:

~$ mysqld
090603 11:06:24 [Warning] Can't create test file /usr/local/mysql-5.0.67-osx10.5-x86/data/hannes-hesses-macbook-pro.lower-test
090603 11:06:24 [Warning] Can't create test file /usr/local/mysql-5.0.67-osx10.5-x86/data/hannes-hesses-macbook-pro.lower-test
mysqld: Can't change dir to '/usr/local/mysql-5.0.67-osx10.5-x86/data/' (Errcode: 13)
090603 11:06:24 [ERROR] Aborting

090603 11:06:24 [Note] mysqld: Shutdown complete

~$

Use PrefPane

1
I installed the MySQL PrefPane and started the daemon with that. It worked.

Think you've got a better solution? Help Thumb_cartoon_futurama_flexo_small hannes out by posting your solution