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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql编译安装完启动时候报错相关的知识,希望对你有一定的参考价值。

[[email protected] mysql]# /etc/init.d/mysqld start

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


[[email protected] 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文件删除即可

[[email protected] mysql]# rm -f data/ib_logfile0 

[[email protected] mysql]# rm -f data/ib_logfile1

[[email protected] mysql]# rm -f data/ib_logfil2


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

以上是关于mysql编译安装完启动时候报错的主要内容,如果未能解决你的问题,请参考以下文章

mysql编译安装完成后,启动时报错The server quit without updating PID file

MySQL源码编译安装

MySQL源码编译安装

centos7编译安装MySQL无法启动解决办法

centos7编译安装MySQL无法启动解决办法

centos7编译安装MySQL无法启动解决办法