Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes 的问题

Vanessa ·
更新时间:2024-09-20
· 971 次阅读

如果你的配置文件使用了类似my-innodb-heavy-4G.cnf作为配置文件的话。
Mysql可以正常启动,但innodb的表无法使用
在错误日志里你会看到如下输出:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
现在需要做的事情就是把原来的 innodb 的ib_logfile×备份到一个目录下,然后删除掉原来的文件,重启 mysql。
你会看到ib_logfile*大小变成了你配置文件中指定的大小。
my-innodb-heavy-4G.cnf的话(log file 的大小是256M:innodb_log_file_size = 256M)
你会看到很多个268435456大小的文件。 您可能感兴趣的文章:MySQL错误ERROR 2002 (HY000): Can''t connect to local MySQL server through socketmysql error:#1062 Duplicate entry ‘***′ for key 1问题解决方法MYSQL ERROR 1045 (28000): Access denied for user (using password: YES)问题的解决mysql ERROR 1044 (42000): Access denied for user ''''@''localhost'' to databaseUCenter info: MySQL Query Error SQL:SELECT value FROM [Table]vars WHERE noteexistswinxp 安装MYSQL 出现Error 1045 access denied 的解决方法MySQLdb ImportError: libmysqlclient.so.18解决方法mysql error 1130 hy000:Host''localhost''解决方案mysql不能启动报error2013错误的多种解决方案mysql输入中文出现ERROR 1366的解决方法



mysql启动 IS file size innodb error bytes log Mysql

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章
Kamaria 2021-07-24
846