jfgdf 发表于 2017-3-13 14:08:56

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

# /etc/init.d/mysqld start
Starting MySQL. ERROR! The server quit without updating PID file (/tmp/mysql.pid).

# 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 Plugin 'InnoDB' init function returned error.
170310 17:06:48 Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170310 17:06:48 Unknown/unsupported storage engine: InnoDB
170310 17:06:48 Aborting

170310 17:06:48 /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文件删除即可
# rm -f data/ib_logfile0
# rm -f data/ib_logfile1
# rm -f data/ib_logfil2


页: [1]
查看完整版本: mysql编译安装完启动时候报错