Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6523358
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: Mysql/postgreSQL

2017-05-31 18:57:28

问题:
2017-05-31T10:31:05.945111Z 0 [Note] InnoDB: Need to create a new innodb_system data file 'ibdata2'.
2017-05-31T10:31:05.945126Z 0 [Note] InnoDB: Need to create a new innodb_system data file 'ibdata3'.
2017-05-31T10:31:05.945131Z 0 [Note] InnoDB: Need to create a new innodb_system data file 'ibdata4'.
2017-05-31T10:31:05.945162Z 0 [ERROR] InnoDB: The innodb_system data file '/opt/mysql5718/data/ibdata1' is of a different size 768 p
ages (rounded down to MB) than the 6400 pages specified in the .cnf file!
2017-05-31T10:31:05.945171Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-05-31T10:31:06.545674Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-05-31T10:31:06.545710Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-05-31T10:31:06.545716Z 0 [ERROR] Failed to initialize plugins.
2017-05-31T10:31:06.545722Z 0 [ERROR] Aborting

实际ibdata1文件大小:
[mysql@izwz9gxsbwybwg9n5xdi47z data]$ ls -al ibdata1
-rw-r----- 1 mysql mysql 12582912 May 31 18:45 ibdata1

配置文件ibdata文件大小:
innodb_data_home_dir=/opt/mysql5718/data
innodb_data_file_path=ibdata1:100M;ibdata2:100M;ibdata3:100M;ibdata4:100M:autoextend

可以看到修改ibdata1大小跟实际的不一样(different size 768 pages (rounded down to MB) than the 6400 pages specified in the .cnf file!),导致报错误.

768/64=12M

修改my.cnf文件参数如下innodb_data_file_path
innodb_data_file_path=ibdata1:12M;ibdata2:100M;ibdata3:100M;ibdata4:100M:autoextend

重新启动,问题解决.



阅读(1985) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~