MySQL Plugin 'InnoDB' init function returned error.

在MySQL的配置文件中,设定default-table-type=InnoDB,发现MySQL无法正常的启动,错误日志中给出了如下的信息:
[quote]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[/quote]

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

[b]参考[/b]
[url]http://forums.mysql.com/read.php?22,144428,249656#msg-249656[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值