码迷,mamicode.com
首页 > 数据库 > 详细

mysql5.7.12/13在安装新实例时报错:InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero

时间:2017-12-19 15:11:36      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:blog   div   mysql   mysq   eva   def   inno   ecif   时报   

.bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx 

然后 .bin/mysqld_safe --defaults-file=xxx --user=mysql & 抛错:

InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!

 

解决办法:.bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx --innodb-data-file-path=ibdata1:1G:autoextend

原因:配置文件my.cnf中指定的innodb-data-file-path 跟默认的不同

mysql5.7.12/13在安装新实例时报错:InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero

标签:blog   div   mysql   mysq   eva   def   inno   ecif   时报   

原文地址:http://www.cnblogs.com/janey/p/8065056.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!