mysql - Xampp:MySQL 意外关闭:无法打开和锁定权限表:文件格式“db”不正确
问题描述
这是我得到的错误
InnoDB: using atomic writes.
2021-11-03 14:44:17 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-11-03 14:44:17 0 [Note] InnoDB: Uses event mutexes
2021-11-03 14:44:17 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-11-03 14:44:17 0 [Note] InnoDB: Number of pools: 1
2021-11-03 14:44:17 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-11-03 14:44:17 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-11-03 14:44:17 0 [Note] InnoDB: Completed initialization of buffer pool
2021-11-03 14:44:18 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-11-03 14:44:18 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-11-03 14:44:18 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-11-03 14:44:18 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-11-03 14:44:18 0 [Note] InnoDB: 10.4.11 started; log sequence number 177899181; transaction id 258473
2021-11-03 14:44:18 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-11-03 14:44:18 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-11-03 14:44:18 0 [Note] Server socket created on IP: '::'.
2021-11-03 14:44:18 0 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'db'
2021-11-03 14:44:18 0 [ERROR] Aborting
2021-11-03 14:44:18 0 [ERROR] InnoDB: Expected tablespace id 2 but found 4294967294 in the file .\mysql\innodb_index_stats.ibd
2021-11-03 14:44:18 0 [ERROR] InnoDB: Expected tablespace id 2 but found 4294967294 in the file .\mysql\innodb_index_stats.ibd
我在网上看到有办法解决这个问题,但我不明白该怎么做。我看到了这个MySQL 致命错误:无法打开和锁定特权表:文件格式不正确'用户'但我不知道我试图从第 1 条评论运行 sudo mysqld 命令的终端,但我没有得到任何东西,就是说 sudo 命令不存在。我应该在特定文件夹中执行此操作吗?我正在尝试在 Visual Studio 代码终端中运行此代码,我是否使用了错误的方法来尝试执行此操作?
我在 Windows 11 上,我使用的是 xampp 版本 v3.2.4。我检查以确保没有其他 MySQL 服务正在运行。
非常感谢您的帮助,谢谢!!!
我会卸载然后重新安装 xampp,但在执行此操作之前,我需要在 PHPMyAdmin 上访问一些数据。
解决方案
推荐阅读
- c# - VM解析成本高吗?MVVM Autofac
- mysql - MySQL 存储过程插入循环
- java - 使用 Streams 的嵌套 EnumMap
- java - 完成处理队列时停止线程的最佳实践
- python - 如何从运行在 IBM i 上的 Python 连接到 Oracle?
- sql - SQL - 选择具有不同组 ID 的用户对
- python - 为 tabWidget Python 导入负责的小部件页面
- java - 如何从番石榴重试器获取原始错误消息?
- python - Sklearn分类与DecisionTree,如何提高拟合?
- sql-server - 使用 sql repoting servives 创建多页、类似模板的报告