当前位置:首页 > MySQL

MySQL Plugin 'InnoDB' init function returned error.

canca12年前 (2014-10-07)MySQL585
在MySQL的配置文件中,设定default-table-type=InnoDB,发现MySQL无法正常的启动,错误日志中给出了如下的信息:
引用
00703 09:28:53 mysqld_safe Starting mysqld daemon with databases from /root/sandboxes/spider_main/data
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 134217728 bytes!
100703  9:28:54 [ERROR] Plugin 'InnoDB' init function returned error.
100703  9:28:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
100703  9:28:54 [Note] Found 1 prepared transaction(s) in SPIDER
100703  9:28:54 [Warning] Found 1 prepared XA transactions
100703  9:28:54 [Note] Event Scheduler: Loaded 0 events
100703  9:28:54 [Note] /home/spider/mysql-5.1.44/5.1.44/bin/mysqld: ready for connections.
Version: '5.1.44'  socket: '/tmp/mysql_sandbox5144.sock'  port: 3306  Source distribution
100703  9:34:59 [Note] /home/spider/mysql-5.1.44/5.1.44/bin/mysqld: Normal shutdown


调查得知,只要删除MySQL目录下的ib_logfile0和ib_logfile1两个文件,就可以解决问题了。

扫描二维码推送至手机访问。

版权声明:本文由Ant.Master's Blog发布,如需转载请注明出处。

本文链接:https://iant.work/post/104.html

标签: MySQL
分享给朋友:

“MySQL Plugin 'InnoDB' init function returned error.” 的相关文章

小谈MySQL字符集

首先,这片文章纯粹是我的个人经验之谈,适用于我常见的环境及项目中.个人建议,数据库字符集尽量使用utf8(HTML页面对应的是utf-8),以使你的数据能很顺利的实现迁移,因为utf8字符集是目前最适合于实现多种不同字符集之间的转换的...…

mysql 配置命令大全

--auto-rehash       Enable automatic rehashing. One doesn't need to use             …

MySql导入SQL文件

MySql导入SQL文件: mysql -u root -p <c:\sampledb.sql…

MySQL建立远程登陆用户

如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 解决方法: 1. 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要…

MySQL备份与恢复语句

mysql备份语句:E:\MySQL Server 5.0\bin>mysqldump -uroot -padmin --default-character-set=utf8 --opt --extended-insert=false --triggers -R --hex-blob -x s…

Mysql中触发器的使用

在SQL中,名词触发器指“在数据库中为响应一个特殊表格中的某些事件而自动执行的程序代码。”(Wikipedia)说得简单一些,它是在一个特殊的数据库事件,如INSERT或DELETE发生时,自动激活的一段代码。触发器可方便地用...…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。