mg4377娱乐娱城官网_mg4377娱乐手机版_www.mg4377.com

当前位置: mg4377娱乐娱城官网 > mg > 正文

【mg】Mysql运维中 InnoDB: Error: log file ./ib_logfile0

时间:2019-07-07 00:46来源:mg
假若您的布局文件使用了邻近my-innodb-heavy-4G.cnf作为配置文件的话。 Mysql能够健康运维,但innodb的表不可能运用 【mg】Mysql运维中 InnoDB: Error: log file ./ib_logfile0 is of differe。在错误日志里你

假若您的布局文件使用了邻近my-innodb-heavy-4G.cnf作为配置文件的话。
Mysql能够健康运维,但innodb的表不可能运用
【mg】Mysql运维中 InnoDB: Error: log file ./ib_logfile0 is of differe。在错误日志里你会看到如下输出:

假设您的布置文件使用了近似my-innodb-heavy-4G.cnf作为配置文件的话。
Mysql能够健康运维,但innodb的表不可能选取
在错误日志里你探望到如下输出:

1,查看Mysqld(/var/log/mysqld.log)日志,开掘以下错误:
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0
5242880 bytes
InnoDB: than specified in the .cnf file 0 104857600 bytes!
030826 1:42:15 Can't init databases
030826 1:42:15 Aborting

2,消除办法

"
If you want to change the number or the size of your InnoDB log files, you
have to shut down MySQL and make sure that it shuts down without errors.
Then copy the old log files into a safe place just in case something went
wrong in the shutdown and you will need them to recover the database. Delete
then the old log files from the log file directory, edit my.cnf, and start
MySQL again. InnoDB will tell you at the startup that it is creating new log
files.
"

1,查看Mysqld(/var/log/mysqld.log)日志,发掘以下错误:
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0
5242880 bytes
InnoDB: than specified in the .cnf file 0 104857600 bytes!
030826 1:42:15 Can't init databases
030826 1:42:15 Aborting

2,消除办法

"
If you want to change the number or the size of your InnoDB log files, you
have to shut down MySQL and make sure that it shuts down without errors.
Then copy the old log files into a safe place just in case something went
wrong in the shutdown and you will need them to recover the database. Delete
then the old log files from the log file directory, edit my.cnf, and start
MySQL again. InnoDB will tell you at the startup that it is creating new log
files.
"

编辑:mg 本文来源:【mg】Mysql运维中 InnoDB: Error: log file ./ib_logfile0

关键词: