mysql5.7.12/13在安裝新實例時報錯:InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages

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

而後 .bin/mysqld_safe --defaults-file=xxx --user=mysql & 拋錯:sql

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!ci

 

解決辦法:.bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx --innodb-data-file-path=ibdata1:1G:autoextendit

緣由:配置文件my.cnf中指定的innodb-data-file-path 跟默認的不一樣innodb

相關文章
相關標籤/搜索