MYSQL XAMPP 中的 v3.3.0 未启动,运行 直到昨天都还好 HY2006 错误

MYSQL in XAMPP v3.3.0 is not starting, was running fine till yesterday HY2006 error

昨天运行突然从今天早上开始就崩溃了。 我附上了错误日志,我们将不胜感激。 我还试图找出是否有任何进程使用以下命令使用此端口:netstat -aon | findstr 3306,但它 returns 什么都没有,这意味着端口是空的。

2022-01-12 11:09:21 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-01-12 11:09:21 0 [Note] InnoDB: Uses event mutexes
2022-01-12 11:09:21 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-01-12 11:09:21 0 [Note] InnoDB: Number of pools: 1
2022-01-12 11:09:21 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-01-12 11:09:21 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-01-12 11:09:21 0 [Note] InnoDB: Completed initialization of buffer pool
2022-01-12 11:09:21 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-01-12 11:09:21 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-01-12 11:09:21 0 [Note] InnoDB: Setting file 'C:\xampp_php8\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-01-12 11:09:21 0 [Note] InnoDB: File 'C:\xampp_php8\mysql\data\ibtmp1' size is now 12 MB.
2022-01-12 11:09:21 0 [Note] InnoDB: Waiting for purge to start
2022-01-12 11:09:21 0 [Note] InnoDB: 10.4.21 started; log sequence number 10430952; transaction id 13603
2022-01-12 11:09:21 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp_php8\mysql\data\ib_buffer_pool
2022-01-12 11:09:21 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-01-12 11:09:21 0 [Note] Server socket created on IP: '::'.

每次我 运行 mysql 我都会在日志中收到此错误并且日志也给出相同的错误消息,昨天它正在运行所以日志看起来不一样,我我也分享昨天的日志:

2022-01-11 10:08:56 0 [Note] InnoDB: Uses event mutexes
2022-01-11 10:08:56 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-01-11 10:08:56 0 [Note] InnoDB: Number of pools: 1
2022-01-11 10:08:56 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-01-11 10:08:56 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-01-11 10:08:56 0 [Note] InnoDB: Completed initialization of buffer pool
2022-01-11 10:08:56 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=10293165
2022-01-11 10:08:59 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-01-11 10:08:59 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-01-11 10:08:59 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-01-11 10:08:59 0 [Note] InnoDB: Setting file 'C:\xampp_php8\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-01-11 10:08:59 0 [Note] InnoDB: File 'C:\xampp_php8\mysql\data\ibtmp1' size is now 12 MB.
2022-01-11 10:08:59 0 [Note] InnoDB: Waiting for purge to start
2022-01-11 10:08:59 0 [Note] InnoDB: 10.4.21 started; log sequence number 10293174; transaction id 13335
2022-01-11 10:08:59 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp_php8\mysql\data\ib_buffer_pool
2022-01-11 10:08:59 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-01-11 10:08:59 0 [ERROR] InnoDB: Database page corruption on disk or a failed file read of tablespace mysql/transaction_registry page [page id: space=3, page number=0]. You may have to recover from a backup.
2022-01-11 10:08:59 0 [Note] InnoDB: Page dump in ascii and hex (16384 bytes):
 len 16384; hex ecefa36b00000000000000000000000000000000000203bc000800000000000000000000000300000003000000000000000900000040000000210000000700000000ffffffff0000ffffffff00000000000100000000009e00000000009e00000000ffffffff0000ffffffff0000000000000000000900000000ffffffff0000ffffffff0000000000010000000200260000000200260000000000000000ffffffff0000ffffffff000000000002aaeaffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f90000000000930fc2000000000090fbc2000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000930fc200000000c4ab248800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002022-01-11 10:08:59 0 [Note] Server socket created on IP: '::'.
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

我终于让它以某种方式工作,不,我没有卸载它或重新安装它。目前运行良好,过程如下:

  1. 去了C:\xampp_php8\mysql,我的xampp mysql的根文件夹:
  2. 已将 data 文件夹重命名为 data_blah 等等...
  3. 创建了新的 data 文件夹,复制并粘贴了 backup 的所有内容 此数据文件夹
  4. 中的文件夹
  5. 开始 xampp、apachemysqlhttps://localhost/phpmyadmin, 这里一切正常。
  6. 已停止 xampp,仅复制了我需要的 数据库文件夹 & ib_logfile0、ib_logfile1ibdata1 来自旧数据目录和 粘贴到新的数据目录中。
  7. 已启动 xampp、apachemysql,一切似乎都很好,但 INSERT 缺少权限。
  8. 最后,按下清空会话数据 https:///localhost/phpmyadmin/index.php.

现在一切正常。