重新安裝percona5.7過程中,啟動mysql服務總是報如下的錯誤
2017-02-10T02:31:36.781070Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable 2017-02-10T02:31:36.781096Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable 2017-02-10T02:31:36.781103Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 2017-02-10T02:31:37.892083Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 2017-02-10T02:31:37.892137Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2017-02-10T02:31:37.892143Z 0 [ERROR] Failed to initialize plugins. 2017-02-10T02:31:37.892146Z 0 [ERROR] Aborting
提示關鍵信息是ibdata1文件不能寫入,查看目錄的權限,發現沒有賦權。
更改權限,並重新啟動Mysql,問題得以解決