背景
今天准备调试一个很久没打开的项目时,页面死活没出数据。后来发现数据库停止,故用命令启动,查看运行状态,发现以下异常。
Jun 15 15:30:58 sccprocduat10 systemd[1]: Started LSB: start and stop MySQL.
Jun 15 15:30:59 sccprocduat10 mysqld[52940]: rm: cannot remove ‘/d1/Mysql_kits/dbdata/sccprocduat10.pid’: Read-only file system
Jun 15 15:30:59 sccprocduat10 mysqld[52940]: 2020-06-15T07:30:59.014993Z mysqld_safe Fatal error: Can‘t remove the pid file:
Jun 15 15:30:59 sccprocduat10 mysqld[52940]: /d1/Mysql_kits/dbdata/sccprocduat10.pid.
Jun 15 15:30:59 sccprocduat10 mysqld[52940]: Please remove the file manually and start /usr/local/mysql/bin/mysqld_safe again;
Jun 15 15:30:59 sccprocduat10 mysqld[52940]: mysqld daemon not started
分析
rm: cannot remove ‘/