Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2851795
  • 博文数量: 348
  • 博客积分: 2907
  • 博客等级: 中校
  • 技术积分: 2272
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-12 09:16
个人简介

专注 K8S研究

文章分类

全部博文(348)

文章存档

2019年(22)

2018年(57)

2016年(2)

2015年(27)

2014年(33)

2013年(190)

2011年(3)

2010年(14)

分类: Mysql/postgreSQL

2013-07-24 01:37:28

  1. 错误

InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

InnoDB: than specified in the .cnf file 0 33554432 bytes!

 

  1. 分析

大概意思:ib_logfile0这个文件的大小是异常的,应该按照.cnf配置文件,指定大小。

参考配置文件

# Size of each log file in a log group. You should set the combined size

# of log files to about 25%-100% of your buffer pool size to avoid

# unneeded buffer pool flush activity on log file overwrite. However,

# note that a larger logfile size will increase the time needed for the

# recovery process.

innodb_log_file_size = 256M

  1. 处理

直接删除已经存在的redo-log文件。

  1. 启动数据库
阅读(850) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~