Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1832912
  • 博文数量: 117
  • 博客积分: 2559
  • 博客等级: 少校
  • 技术积分: 4385
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-13 20:08
个人简介

作为初学者,要想取得进步,成为高手,首先应该了解自己的不足之处.

文章分类

全部博文(117)

文章存档

2014年(1)

2013年(25)

2012年(13)

2011年(77)

2010年(1)

分类: Mysql/postgreSQL

2011-05-11 21:44:50

  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. 启动数据库
阅读(2182) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~