Last Updated: February 25, 2016
·
289
· novalagung

mysql xampp machintosh - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql::Error)

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql::Error)

if you got error like that when trying to connect mysql in xampp. use these command:

ln -s /Applications/xampp/xamppfiles/var/mysql/mysql.sock /tmp/mysql.sock