bitsCN.com
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.
"
在你修改my.cnf的innodb_log_file_size参数前,请先停止mysql服务程序的运行(mysql的停止没有出现任何错误),并把/var/lib/mysql目录下的ib_logfile0、ib_logfile1、ib_logfile2等之类的文件移除到一个安全的地方(旧日志文件的保留是为了防止意外的出现),以便Mysql重启后可以将新的ib_logfile0之类日志文件生成到/var/lib/mysql目录下。如果没有什么意外,旧的日志文件可以删除。bitsCN.com
mysql 有关“InnoDB Error ib_logfile0 of different size”错误_MySQL-mysql教程-
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。
相关推荐
- c语言函数指针作为返回值怎么用-C++-
- python网络自动化运维脚本是什么-办公软件-
- 电饭煲e4故障怎么解决-常见问题-
- Bootstrap如何调试-Bootstrap教程-
- Bootstrap结果在哪里查看-Bootstrap教程-
- PS载入慢与硬盘速度有关吗?-PS教程-
- 《真三国无双:起源》武器介绍:护手、剑、枪、飞圈、朴刀-主机专区-
- 小米 BL 解锁规则调整:明年 1 月起最多支持申请通过用户在权限期内解锁 1 台绑定设备-手机新闻-
- 机械革命 CES 2025 笔记本电脑新品预热:A 面外壳采用特殊工艺-硬件新闻-
- AMD Radeon RX 9070 XT 显卡被曝游戏测试中和 RTX 4080 区别在 5% 以内-硬件新闻-