1.[ERROR] InnoDB: Data file /usr/local/mysql-5.6.30/data3306/ibdata1 is of a different size
[root@localhost mysql]# less /etc/my.cnf |grep innodb_data_file_path innodb_data_file_path = ibdata1:200M:autoextend [root@localhost mysql]# ls -lh /var/lib/mysql/ibdata1 -rw-rw---- 1 mysql mysql 18M Nov 12 22:00 /var/lib/mysql/ibdata1 由於參數設置和實際的文件大小不一致,啟動mysql出現了上述的故障 此時我們可以選擇修改my.cnf文件的配置或者直接注釋掉這個參數設置,讓mysql啟動時用默認參數去檢驗 或者My.cnf文件中指定該參數等於實際文件的大小 [root@localhost mysql]# less /etc/my.cnf |grep innodb_data_file_path innodb_data_file_path = ibdata1:18M:autoextend