mysql 有关“InnoDB Error ib_logfile0 of different size”错误

Trixie ·
更新时间:2024-09-20
· 908 次阅读

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目录下。如果没有什么意外,旧的日志文件可以删除。 您可能感兴趣的文章:mysql主从同步复制错误解决一例win2003 安装2个mysql实例做主从同步服务配置Mysql主从同步备份策略分享windows环境下mysql数据库的主从同步备份步骤(单向同步)mysql主从同步快速设置方法MySQL 数据库双向镜像、循环镜像(复制)Mysql 主从数据库同步(centos篇)解读mysql主从配置及其原理分析(Master-Slave)mysql 数据同步 出现Slave_IO_Running:No问题的解决方法小结mysql SKIP-NAME-RESOLVE 错误的使用时机造成用户权限MYSQL同步 Slave_IO_Running: No 或者Slave_SQL_Running: No的解决方法[已测]Windows mysql 双向同步设置方法 详细篇win2003 mysql单向同步配置步骤[已测]



size innodb error Mysql

需要 登录 后方可回复, 如果你还没有账号请 注册新账号