Found this on another board and it solved an issue I had with a brand new server that I probably caused...
Problem (1) /tmp/mysql.sock missing .
Solution -
i) login as root through ssh
ii) type "ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock"
Problem (2) Can not connect to /var/lib/mysql/mysql.sock
Solution -
1) Stop MySQL server,
2) Type safe_mysqld --socket=/var/lib/mysql/mysql.sock
3) ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
4) Start MySQL . ( Recommended )
I used step two. of problem 2 only and it worked.
Problem (1) /tmp/mysql.sock missing .
Solution -
i) login as root through ssh
ii) type "ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock"
Problem (2) Can not connect to /var/lib/mysql/mysql.sock
Solution -
1) Stop MySQL server,
2) Type safe_mysqld --socket=/var/lib/mysql/mysql.sock
3) ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
4) Start MySQL . ( Recommended )
I used step two. of problem 2 only and it worked.
__________________
No comments:
Post a Comment