您好,登錄后才能下訂單哦!
MySQL異機遷移后,啟動數據庫報錯
# /data/mysql_57_software/bin/mysqld_safe --defaults-file=/etc/my3319.cnf --user=mysql & # tail -20 /var/log/mysqld3319.log 2019-01-02T07:11:01.716793Z 0 [ERROR] InnoDB: The innodb_system data file './ibdata1' is of a different size 17152 pages (rounded down to MB) than the 64000 pages specified in the .cnf file! 2019-01-02T07:11:01.716832Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 2019-01-02T07:11:02.317322Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 2019-01-02T07:11:02.317347Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2019-01-02T07:11:02.317353Z 0 [ERROR] Failed to initialize plugins. 2019-01-02T07:11:02.317361Z 0 [ERROR] Aborting
報錯原因:
參數文件中的系統表空間大于實際的系統表空間大小,導致啟動報錯。
# du -sh /data/mysql_3319/ibdata1 268M /data/mysql_3319/ibdata1 # cat /etc/my3319.cnf # innodb innodb_data_file_path=ibdata1:1000M;ibdata2:1000M:autoextend
解決辦法:
將參數文件中系統表空間的大小改為小于實際系統表空間大小的值。
# innodb innodb_data_file_path=ibdata1:256M;ibdata2:256M:autoextend
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。