linux系统 mysql启动不了
原来mysql是可以正常运行的。重启了一下机器,然后再启动mysql的时候就提示:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
我是/etc/rc.d/init.d/mysql start启动的。service 命令也试过了,都不行。mysql.sock这个文件我find没有找到。在网上查了资料,说是重启一下mysql就会自动生成mysql.sock,但是我根本启不了mysql服务。重启机器也不行。用locate mysql.sock 提示我:warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
Please have a look at /etc/updatedb.conf to enable the daily cron job.
高手帮帮忙。着急啊。谢谢