【问题标题】:XAMPP: [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writableXAMPP:[错误] InnoDB:innodb_system 数据文件“ibdata1”必须是可写的
【发布时间】:2020-07-24 12:41:44
【问题描述】:

我想制作自己的 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:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-04-10 15:05:25 0 [Note] InnoDB: File 'D:\xampp\mysql\data\ibtmp1' 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:\xampp\mysql\data\ib_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,我作为管理员应该可以完全控制它,所以我不确定为什么会出现这个错误。

对于如何解决这个问题,我有哪些选择?

【问题讨论】:

    标签: permissions xampp innodb writable


    【解决方案1】:

    我在尝试将密码重置为 MySQL 时遇到了类似的问题。我正在使用 Windows 计算机。我进入了管理工具-> 服务,然后停止了 MySQL 任务。然后我没有收到错误信息:“'ibdata1' must be writable”

    【讨论】:

      【解决方案2】:

      可能你已有的mysql进程正在运行,去任务管理器禁用它吧。

      【讨论】:

        猜你喜欢
        • 2019-10-24
        • 2021-06-20
        • 2017-10-27
        • 2012-07-23
        • 2016-09-29
        • 1970-01-01
        • 2021-07-01
        • 1970-01-01
        • 2019-01-10
        相关资源
        最近更新 更多