当前位置:首页 > MySQL

MySQL Plugin 'InnoDB' init function returned error.

canca12年前 (2014-10-07)MySQL694
在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导入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。这个时候只要…

解决PHP存取MySQL 4.1乱码问题

从MySQL 4.1开始引入的多语言支持确实很棒,而且一些特性已经超过了其他的数据库系统。不过我在测试过程中发现使用适用于MySQL 4.1之前的PHP语句操作MySQL数据库会造成乱码,即使是设置过了表字符集也是如此。我读了一下新的M...…

MySQL免安装配置方法

1.下载一个安装版的。 安装版,安装后%MYSQL_HOME%\bin下有一个mysqld-nt.exe文件。将它复制出来(珍藏起来)。 2.下载一个免安装版MSYQL 将它解压。例如:E:/mysql-6.0.3-alpha-win32 将my-huge.ini另存为my.ini。 打开my.in…

恢复MYSQL自增列值

truncate categorys…

sql语句查询经纬度范围

sql语句查询经纬度范围

指定一个经纬度,给定一个范围值(单位:千米),查出在经纬度周围这个范围内的数据。 经度:113.914619 纬度:22.50128 范围:2km longitude为数据表经度字段 latitude为数据表纬度字段 SQL在mysql下测…

发表评论

访客

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