innodb问题解决方法

时间:2022-07-03 10:32:21

MySQL ERROR] Plugin 'InnoDB' init function returned error.

2011-04-08 18:12:34|  分类: mysql 阅读164 评论0  字号: 订阅

问题:从另外一台服务器,将已编译好的MySQL拷贝到本地服务器上,
           并更改了datadir
           启动mysql时,报错:
           InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
           InnoDB: than specified in the .cnf file 0 104857600 bytes!
          110408  4:17:59 [ERROR] Plugin 'InnoDB' init function returned error.
          110408  4:17:59 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

解决:删除 ./ib_logfile0