以前机子是win server 2008 r2 ,mysql:5.5.25a-winx64 重装时只备份了data目录,以前也这样干过,重装后,直接拷贝目录就OK;
现在装了,win server 2012,mysql:5.5.29,拷过去,服务启动不了,提示1067,错误日志:
130105 15:52:32 [Note] Plugin 'FEDERATED' is disabled.
D:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: Incorrect file format 'plugin'
130105 15:52:32 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130105 15:52:32 InnoDB: The InnoDB memory heap is disabled
130105 15:52:32 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130105 15:52:32 InnoDB: Compressed tables use zlib 1.2.3
130105 15:52:32 InnoDB: Initializing buffer pool, size = 107.0M
130105 15:52:32 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file .\ib_logfile0 is of different size 0 54525952 bytes
InnoDB: than specified in the .cnf file 0 56623104 bytes!
130105 15:52:32 [ERROR] Plugin 'InnoDB' init function returned error.
130105 15:52:32 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130105 15:52:32 [ERROR] Unknown/unsupported storage engine: INNODB
130105 15:52:32 [ERROR] Aborting130105 15:52:32 [Note] D:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: Shutdown complete如何处理?
data目录

解决方案 »

  1.   

    是在win server 2012的mysql停止情况下拷贝的data目录吗
      

  2.   

    当然了。服务不停,原data都删除不了的
      

  3.   

    跨版本或者平台时,MYSQL官方推荐的方案是使用 mysqldump 导出数据,然后再在新版本MYSQL导入。
      

  4.   

    关键是现在装以前的mysql:5.5.25a-winx64,也是1067,难道在win server2008 r2 and win server2012 上装有什么不一样吗?