MySQL数据迁移问题一

MySQL的数据迁移比较简单,但有几点一定要注意:

当启用InnoDB引擎,在my.ini中有一个配置项:innodb_log_file_size

必须保证移植前后这个配置值是相同的,不然服务无法启动

如果不知道这个值咋办呢,查看日志

InnoDB: Error: log file .\ib_logfile0 is of different size 0 359661568 bytes
InnoDB: than specified in the .cnf file 0 56623104 bytes!
140525 17:21:20 [ERROR] Plugin 'InnoDB' init function returned error.
140525 17:21:20 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140525 17:21:20 [ERROR] Unknown/unsupported table type: INNODB
140525 17:21:20 [ERROR] Aborting

我们看看到,日志很清楚的显示了原来的innodb_log_file_size和现在的innodb_log_file_size,把现在的配置改为原来的即可。

猜你喜欢

转载自hqlin007.iteye.com/blog/2070948
今日推荐