mysql is too full,Mysql Error: The partition with /var/lib/mysql is too full!

df: `/var/lib/mysql/.': Permission denied 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

df: `/var/lib/mysql/.': Permission denied

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的my.cnf 改名,然后重装下mysql 就可以了。装好了启动了,再把改名了的my.cnf 改成my.cnf 再重启下mysql 就行了

去修改/etc/init.d/mysql 里面的if判断是不行的,绕不过去。

如果这样都不行, 推荐你去检查下bashrc , 在/root/.bashrc 看看是不是加了影响环境的bash输出. 比如cw之类的, 注释掉它就可以正常重启了.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值