xtrabackup 恢复出现错误InnoDB: Error: log file ./ib_logfile2 is of different size 0 0 bytes

161104 10:11:54 InnoDB: Initializing buffer pool, size = 22.0G
161104 10:11:55 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile2 is of different size 0 0 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!
161104 10:11:55 [ERROR] Plugin 'InnoDB' init function returned error.
161104 10:11:55 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
161104 10:11:55 [ERROR] Unknown/unsupported storage engine: InnoDB
161104 10:11:55 [ERROR] Aborting

161104 10:11:55 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete


解决方式基本方式是不同配置启动导致。在使用xtrabacku 恢复应用日志过程中没有指定使用规范的配置文件。

把ib_logfile文件移动到另外目录备份,重新启动mysql即可

你可能感兴趣的:(MySQL管理)