XAMPP MySQL在WIN 11更新后无法启动

vuktfyat  于 2023-03-28  发布在  Mysql
关注(0)|答案(1)|浏览(167)

Win 11安装了XAMPP,一切运行正常。不得不重新启动PC,并进行了Windows更新。当我回来时,MySQL将无法启动。
这是错误日志。我以管理员身份运行它,不确定我需要做什么来修复这个问题。

2022-03-24 18:13:12 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-24 18:13:12 0 [Note] InnoDB: Uses event mutexes
2022-03-24 18:13:12 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-24 18:13:12 0 [Note] InnoDB: Number of pools: 1
2022-03-24 18:13:12 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-24 18:13:12 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-03-24 18:13:12 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-24 18:13:12 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-24 18:13:12 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-24 18:13:12 0 [Note] InnoDB: Setting file 'E:\barkeeper\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-24 18:13:12 0 [Note] InnoDB: File 'E:\barkeeper\xampp\mysql\data\ibtmp1' size is now 12 MB.
2022-03-24 18:13:12 0 [Note] InnoDB: Waiting for purge to start
2022-03-24 18:13:12 0 [Note] InnoDB: 10.4.19 started; log sequence number 15569034; transaction id 163623
2022-03-24 18:13:12 0 [Note] InnoDB: Loading buffer pool(s) from E:\barkeeper\xampp\mysql\data\ib_buffer_pool
2022-03-24 18:13:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-24 18:13:12 0 [Note] Server socket created on IP: '::'.
2022-03-24 18:13:12 0 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'db'
2022-03-24 18:13:12 0 [ERROR] Aborting
bbuxkriu

bbuxkriu1#

我把它修好了,下面是如何:
1.关闭Xampp应用程序(最好使用任务管理器)
1.打开C:\xampp\mysql文件夹
1.将数据文件夹重命名为data_old
1.复制并粘贴名为backup_copy的备份文件夹
1.将backup_copy文件夹重命名为data
1.打开data_old文件夹,复制除mysql文件夹、performance_schema文件夹和phpmyadmin文件夹以外的所有文件夹。
1.转到新重命名的数据文件夹,将步骤6中的文件夹粘贴到里面。
1.打开data_old文件夹,复制ibdata1
1.将其粘贴到data文件夹
1.启动Xampp,现在一切都应该正常了。

相关问题