Friday, March 20, 2015

Rails Mysql2::Error (Can't connect to local MySQL server through socket

Something going to error, my site got trouble.
checking in the apache error log found the Mysql2::Error (Can't connect to local MySQL server through socket
googling and found

mysqladmin variables | grep socket
and touch the socket file
touch /var/lib/mysql/mysql.sock