df: `/var/lib/mysql/.': Permission denied
df: no file systems processed
df: no file systems processed
[....] /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! [FA failed!
重启mysql的时候报错, 说/var/lib.mysql 满了.
df 查看还剩余很多.
这导致debian下的mysql不能重启,
解决办法
把ibdata1文件cp备份后删除重启mysql即可. (注意,删除重启还是报错,
查看下日志
Error: all log files must be created at the same time.
130509 14:41:26 InnoDB: All log files must be created also in database creation.
130509 14:41:26 InnoDB: If you want bigger or smaller log files, shut down the
130509 14:41:26 InnoDB: database and make sure there were no errors in shutdown.
130509 14:41:26 InnoDB: Then delete the existing log files. Edit the .cnf file
130509 14:41:26 InnoDB: and start the database again.
把对应的其他的log也删除掉,)
本文解决了一个常见的MySQL启动问题,即由于/var/lib/mysql目录空间满而导致的启动失败。通过备份并删除ibdata1文件及相关的日志文件,可以有效解决此问题。
4904

被折叠的 条评论
为什么被折叠?



