当前位置:Gxlcms > 数据库问题 > 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

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

时间:2021-07-01 10:21:17 帮助过:5人阅读

.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   时报   

人气教程排行