php XAMPP控制面板v3.3.0-错误:MySQL意外关闭

new9mtju  于 2023-01-29  发布在  PHP
关注(0)|答案(2)|浏览(272)

今天尝试启动我的Apache服务器,MySQL没有运行,这是它显示的错误:

10:15:28 AM  [mysql]    Status change detected: running
10:15:32 AM  [mysql]    Status change detected: stopped
10:15:32 AM  [mysql]    Error: MySQL shutdown unexpectedly.
10:15:32 AM  [mysql]    This may be due to a blocked port, missing dependencies, 
10:15:32 AM  [mysql]    improper privileges, a crash, or a shutdown by another method.
10:15:32 AM  [mysql]    Press the Logs button to view error logs and check
10:15:32 AM  [mysql]    the Windows Event Viewer for more clues
10:15:32 AM  [mysql]    If you need more help, copy and post this
10:15:32 AM  [mysql]    entire log window on the forums

这是来自xampp控制面板的日志错误:

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

尝试:
1.将文件夹mysql/data重命名为mysql/data_old(可以使用任何名称)
1.创建新文件夹mysql/data
1.将mysql/backup中的内容复制到新的mysql/data文件夹中
1.将mysql/data_old中的所有数据库文件夹复制到mysql/data(跳过data_old中的mysql、performance_schema和phpmyadmin文件夹)
1.最后,从mysql/data_old复制ibdata1文件,并将其替换到mysql/data文件夹中
1.从XAMPP控制面板启动MySQL
还尝试:
1.退出Xampp服务器
1.转到C:\xampp\mysql\data目录
1.删除ibdata1文件
1.重新启动xampp服务器
谁知道解决办法?

bvjxkvbb

bvjxkvbb1#

如果有人对答案感兴趣,只要重新安装xammp控制面板,因为它仍然给我错误

db2dz4w8

db2dz4w82#

顺便说一句,供将来参考,这可能会发生在你关闭你的计算机与xampp仍然运行。

相关问题