MySQL出现Can't connect to local MySQL server through socket 'tmpmysql.sock'报错

不小心清空了/tmp目录,在使用MySQL时出现Can't connect to local MySQL server through socket '/tmp/mysql.sock'报错,解决办法是重启MySQL

service mysqld restart
如果觉得我的文章对你有用,请随意赞赏