不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:php-note.com  发布于:2020-12-08 10:04  分类:MySQL/NoSQL  编辑

MySQL莫名地报错:

2020-12-08T02:02:32.179362Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2020-12-08T02:02:32.180017Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2020-12-08T02:02:32.180530Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-12-08T02:02:32.395955Z 0 [ERROR] Plugin 'InnoDB' init function returned error.

解决方案:

1、打开“任务管理器”,终止MySQL进程;

2、打开MySQL安装目录的data文件夹,删除以下2个文件:ib_logfile0ib_logfile1

3、重新启动MySQL;