码迷,mamicode.com
首页 > 数据库 > 详细

mysql编译安装完启动时候报错

时间:2017-03-10 22:44:24      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:storage   mysql   

[root@host2 mysql]# /etc/init.d/mysqld start

Starting MySQL. ERROR! The server quit without updating PID file (/tmp/mysql.pid).


[root@host2 mysql]# tail -f data/host2.err 

InnoDB: Error: log file ./ib_logfile0 is of different size 0 4194304 bytes

InnoDB: than specified in the .cnf file 0 5242880 bytes!

170310 17:06:48 [ERROR] Plugin ‘InnoDB‘ init function returned error.

170310 17:06:48 [ERROR] Plugin ‘InnoDB‘ registration as a STORAGE ENGINE failed.

170310 17:06:48 [ERROR] Unknown/unsupported storage engine: InnoDB

170310 17:06:48 [ERROR] Aborting


170310 17:06:48 [Note] /application/mysql/bin/mysqld: Shutdown complete


170310 17:06:48 mysqld_safe mysqld from pid file /application/mysql/data/host2.pid ended


说函数误差

解决方法:

把data下面的ib_logfil文件删除即可

[root@host2 mysql]# rm -f data/ib_logfile0 

[root@host2 mysql]# rm -f data/ib_logfile1

[root@host2 mysql]# rm -f data/ib_logfil2


本文出自 “11002498” 博客,请务必保留此出处http://11012498.blog.51cto.com/11002498/1905228

mysql编译安装完启动时候报错

标签:storage   mysql   

原文地址:http://11012498.blog.51cto.com/11002498/1905228

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!