mysql /var/lib/mysql/mysql.sock 文件不存在

方案一:http://www.educity.cn/wenda/593831.html

方案二:上面方法用户mysql_safe 是可以运行的,但是服务器重新的起动后。就又不行了。

            解决方式是重新初始化一下数据库

             > mysql_install_db

http://www.linuxidc.com/Linux/2012-09/70416.htm

你可能感兴趣的:(mysql.sock)