mysql 5.0.45,have innodb,disabled

来源:互联网 发布:引出数据失败 编辑:程序博客网 时间:2024/06/01 17:25
mysql 5.0.45,
安装完成后显示:

have innodb DISABLED
为什么会这样,如何解决? 

查看日志:

071017 17:47:40  mysqld started
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!

/etc/rc.d/init.d/mysqld stop
在/usr/local/mysql/data/下面执行
rm ib*
然后/etc/rc.d/init.d/mysqld start

OK