Chinaunix首页 | 论坛 | 博客
  • 博客访问: 440094
  • 博文数量: 237
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-06-12 14:40
个人简介

  每个人生的当口,都是会有一个孤独的时刻,四顾无人,只有自己,于是不得不看明白自己的脆弱,自己的欲望,自己的念想,自己的界限,还有,自己真正的梦想。

文章分类

全部博文(237)

文章存档

2017年(3)

2016年(234)

分类: Mysql/postgreSQL

2016-05-11 11:11:21

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