ERROR 1286 (42000): Unknown table engine 'InnoDB'

在尝试增大IB_LOGFILE大小后,忘记移除原有文件导致InnoDB启动失败,详细分析错误原因及解决步骤。

   增大了ib_logfile的大小,忘记移除原来的 ib log。结果启动过程中innodb发现磁盘上的 ib log文件和配置文件里的大小不一致,大致innodb启动失败。

任何对innodb的表的操作都会得到这个错误,ERROR 1286 (42000): Unknown table engine 'InnoDB'

这是日志250819 09:54:37 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 250819 9:54:37 [Note] /usr/libexec/mysqld (mysqld 5.5.68-MariaDB) starting as process 50769 ... 250819 9:54:37 InnoDB: The InnoDB memory heap is disabled 250819 9:54:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins 250819 9:54:37 InnoDB: Compressed tables use zlib 1.2.7 250819 9:54:37 InnoDB: Using Linux native AIO 250819 9:54:37 InnoDB: Initializing buffer pool, size = 128.0M 250819 9:54:37 InnoDB: Completed initialization of buffer pool InnoDB: Error: checksum mismatch in data file ./ibdata1 250819 9:54:37 InnoDB: Could not open or create data files. 250819 9:54:37 InnoDB: If you tried to add new data files, and it failed here, 250819 9:54:37 InnoDB: you should now edit innodb_data_file_path in my.cnf back 250819 9:54:37 InnoDB: to what it was, and remove the new ibdata files InnoDB created 250819 9:54:37 InnoDB: in this failed attempt. InnoDB only wrote those files full of 250819 9:54:37 InnoDB: zeros, but did not yet use them in any way. But be careful: do not 250819 9:54:37 InnoDB: remove old data files which contain your precious data! 250819 9:54:37 [ERROR] Plugin 'InnoDB' init function returned error. 250819 9:54:37 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 250819 9:54:37 [Note] Plugin 'FEEDBACK' is disabled. 250819 9:54:37 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 250819 9:54:37 [ERROR] Unknown/unsupported storage engine: InnoDB 250819 9:54:37 [ERROR] Aborting
最新发布
08-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值