SyntaxFix
Write A Post
Hire A Developer
Questions
Just edit /etc/my.cnf Add following lines to my.cnf
/etc/my.cnf
my.cnf
[mysqld] socket=/var/lib/mysql/mysql.sock [client] socket=/var/lib/mysql/mysql.sock
Restart mysql and connect again
mysql -u user -p password database -h host;