
mysql Incorrect information in file
这个错误给的比较笼统,很多时候会误导人。
查看mysql的错误日志
发现有这么一段话
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 67108864 bytes!
原来是日志文件的大小与描述的不一致。
把log文件移走,再重启mysql,问题解决。
需要特别注意的是,移走log之前确保innodb_fast_shutdown的值不是2,如果是2则需要先改为1,然后重启使之生效,再关闭mysql删log文件。其默认值是1。
可以在mysql中用 show variables like '%innodb_fast_shutdown%'来查看
用 set global innodb_fast_shutdown=1来修改。
不知道是不是能帮到你
================先停掉mysql服务,
备份数据.
然后
打开windows的命令行窗口. cd 到你的mysql的数据文件夹.
使用 myisamchk producer.frm来修复数据表.
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)