InnoDB: The innodb_system data file 'ibdata1' must be writable错误
重新安装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,问题得以解决