Cant-connect-to-mysql

From FiberWiki

Jump to: navigation, search

Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’

This error can be quite a pain when setting up a new server. It normally is not hard to fix so here are the ways we have used the most:

  • Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
Your mysql.sock might be located elsewhere use ‘find / -name mysql.sock’
If it is located else where then ln -s [target] [nameoflink] this will link the file and allow it to start.
  • Permissions
If you didnt find mysql.sock on your system then do ‘cd /’
Then ‘chmod 777 tmp’

Those should fix the issue

Personal tools
Navigation