Jump to content

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


Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Your Mysql gets fucked due low space try keep the logs clean.

How to fix:

Reinstall Mysql = 25% chance to solve it and that pointing highter.

Reinstall OS

To avoid this kind of issues create a config file using:

# ee  /usr/local/etc/my.cnf

then add this: 

# The MySQL server configuration
[mysqld]
socket          = /tmp/mysql.sock

#Expire binary logs after 5 days:
expire_logs_days = 5

#Max size logs delete
max_binlog_size = 100M

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.