1. 程式人生 > >[ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibaredata1

[ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibaredata1

docker 安裝mysql  出現 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!

出現的原因是 一開始我是用了 5.8 ,然後資料目錄存了一些資料,我換成5,7的時候 沒有把資料刪掉,再重新啟動的時候,資料目錄還是指向原來的資料,版本的資料格式不一樣, 清空 資料目錄的資料,便可以啟動了