当我打开XAMPP并单击start MySQL按钮时,它会给出一个错误。我之前刚开始,但现在不行了。
它在xammp中给出了下面的错误
Error: MySQL shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
以下是错误日志的内容:
2022-03-05 11:17:33 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-05 11:17:33 0 [Note] InnoDB: Uses event mutexes
2022-03-05 11:17:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-05 11:17:33 0 [Note] InnoDB: Number of pools: 1
2022-03-05 11:17:33 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-05 11:17:33 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2022-03-05 11:17:33 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-05 11:17:36 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-05 11:17:36 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-05 11:17:36 0 [Note] InnoDB: Setting file 'D:\xamp_7.2\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-05 11:17:36 0 [Note] InnoDB: File 'D:\xamp_7.2\mysql\data\ibtmp1' size is now 12 MB.
2022-03-05 11:17:36 0 [Note] InnoDB: Waiting for purge to start
2022-03-05 11:17:36 0 [Note] InnoDB: 10.4.13 started; log sequence number 5683247830; transaction id 653050
2022-03-05 11:17:36 0 [Note] InnoDB: Loading buffer pool(s) from D:\xamp_7.2\mysql\data\ib_buffer_pool
2022-03-05 11:17:36 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-05 11:17:36 0 [Note] InnoDB: Buffer pool(s) load completed at 220305 11:17:36
2022-03-05 11:17:36 0 [Note] Server socket created on IP: '::'.
造成这些错误的原因是什么,我如何纠正它们?
发布于 2022-03-05 07:36:43
造成这个问题的原因有几个,以下是一些解决办法:
造成此错误“MySQL关机意外”的主要原因之一是另一个使用分配给MySQL的端口的软件,端口为3306。要验证这一点,您可以使用XAMPP控制面板中的netstat模块,就在Shell工具之上。您可以通过简单地更改mysql端口来解决这个问题,并防止它在将来重复。若要更改它,请执行以下操作:
Settings
造成此错误的另一个原因是数据库损坏,要修复它,只需恢复由xampp自动创建的数据库备份。默认情况下,XAMPP MySQL备份文件应该位于本地磁盘> XAMPP > MySQL下。在该目录中,您将看到几个文件夹,其中两个称为数据和备份。“数据”文件夹包含数据库使用的所有文件。备份文件夹包含您的MySQL最近的一个副本。若要还原MySQL备份,请将数据文件夹的名称更改为任何其他内容,如“数据旧”。然后将备份文件夹重命名为data。就这样!
https://stackoverflow.com/questions/71359871
复制相似问题