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
1条答案
按热度按时间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,现在一切都应该正常了。