XAMPP:[错误] InnoDB:innodb_system数据文件'ibdata1'必须是可写的



我想制作自己的wiki供个人使用,并将其放在外部驱动器上。我正在使用Windows 10。

昨天,我将XAMPP便携式安装到外部驱动器上,并设置了MediaWiki,一切都很好。我在没有关闭apache和mysql的情况下关闭了电脑,今天早上醒来继续工作,但mysql无法启动。我还没有备份,因为我最近刚刚在昨天晚上做了备份,所以我不会因为失去我写的几篇文章而感到太沮丧。

InnoDB: using atomic writes.
2020-04-10 15:05:25 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-04-10 15:05:25 0 [Note] InnoDB: Uses event mutexes
2020-04-10 15:05:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-04-10 15:05:25 0 [Note] InnoDB: Number of pools: 1
2020-04-10 15:05:25 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-04-10 15:05:25 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-04-10 15:05:25 0 [Note] InnoDB: Completed initialization of buffer pool
2020-04-10 15:05:25 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2020-04-10 15:05:25 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-04-10 15:05:25 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-04-10 15:05:25 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-04-10 15:05:25 0 [Note] InnoDB: Setting file 'D:xamppmysqldataibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-04-10 15:05:25 0 [Note] InnoDB: File 'D:xamppmysqldataibtmp1' size is now 12 MB.
2020-04-10 15:05:25 0 [Note] InnoDB: Waiting for purge to start
2020-04-10 15:05:25 0 [Note] InnoDB: 10.4.11 started; log sequence number 300297; transaction id 171
2020-04-10 15:05:25 0 [Note] InnoDB: Loading buffer pool(s) from D:xamppmysqldataib_buffer_pool
2020-04-10 15:05:25 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-10 15:05:25 0 [Note] Server socket created on IP: '::'.
2020-04-10 15:12:20 0 [Note] mysqld: Aria engine: starting recovery
recovered pages: 0% 26% 38% 54% 64% 74% 84% 94% 100% (0.0 seconds); tables to flush: 2 1 0
(0.1 seconds); 
2020-04-10 15:12:20 0 [Note] mysqld: Aria engine: recovery done
InnoDB: using atomic writes.
2020-04-10 15:12:20 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2020-04-10 15:12:20 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2020-04-10 15:12:20 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-04-10 15:12:20 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-04-10 15:12:20 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-10 15:12:20 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-04-10 15:12:20 0 [ERROR] Aborting

我试着查看ibdata1,作为管理员,我应该完全控制它,所以我不确定为什么会出现这个错误。

关于如何解决这个问题,我有什么选择?

也许您有现有的mysql进程正在运行,请转到任务管理器禁用它。

当我试图将密码重置为MySQL时,也遇到了类似的问题。我使用的是Windows电脑。我进入了管理工具->服务,然后停止MySQL任务。然后我没有收到错误消息:"ibdata1’必须是可写的">

最新更新