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

After building MySQL from sources on Ubuntu, I got this error:

I checked the directory “/tmp/” there is no “mysql.sock”. After some researches, I found that the problem came from the mysql config file “my.conf”, mine is empty. Just reedit it to solve the problem. Here is a example:


Leave a Reply

Your email address will not be published. Required fields are marked *