Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Before opening the machine back the project, we found that when landing back-office systems, enter a user name, password, user name or password prompt.
1.连接mysql数据库,发现链接不上,但是ps -ef |grep mysql 发现有mysql服务
2.输入mysql -u root -p ,提示说找不到sock文件
3.service mysqld restart 重启失败
4.重启机器,还是连接不上数据库,
但在重启机器后,登录进虚机系统后发现第一行提示: grep:write error
5.df -h 查看 发现 机器磁盘已满
6.查看/var/log/mysql.log ,mysql的日志中发现磁盘已满,pid文件写不进去,因此服务没启动起来
7.删除掉无用文件,service mysqld restart mysql服务成功启动