如何解决错误:MySQL 意外关闭

问题描述 投票:0回答:1

当我尝试从 XAMP 启动器启动 MySQL 时,出现此错误

12:41:34 PM  [mysql]   Error: MySQL shutdown unexpectedly.

12:41:34 PM  [mysql]   This may be due to a blocked port, missing dependencies, 

12:41:34 PM  [mysql]   improper privileges, a crash, or a shutdown by another method.

12:41:34 PM  [mysql]   Press the Logs button to view error logs and check

12:41:34 PM  [mysql]   the Windows Event Viewer for more clues

12:41:34 PM  [mysql]   If you need more help, copy and post this

12:41:34 PM  [mysql]   entire log window on the forums

当我检查日志时,我得到的是:

2024-02-08 11:48:16 0 [Note] Starting MariaDB 10.4.28-MariaDB source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 23696

2024-02-08 11:48:16 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2024-02-08 11:48:16 0 [Note] InnoDB: Uses event mutexes

2024-02-08 11:48:16 0 [Note] InnoDB: Compressed tables use zlib 1.2.12

2024-02-08 11:48:16 0 [Note] InnoDB: Number of pools: 1

2024-02-08 11:48:16 0 [Note] InnoDB: Using SSE2 crc32 instructions

2024-02-08 11:48:16 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M

2024-02-08 11:48:16 0 [Note] InnoDB: Completed initialization of buffer pool

2024-02-08 11:48:16 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

2024-02-08 11:48:16 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2024-02-08 11:48:16 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

2024-02-08 11:48:16 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.

2024-02-08 11:48:16 0 [Note] InnoDB: Waiting for purge to start

2024-02-08 11:48:16 0 [Note] InnoDB: 10.4.28 started; log sequence number 714125; transaction id 963

2024-02-08 11:48:16 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool

2024-02-08 11:48:16 0 [Note] Plugin 'FEEDBACK' is disabled.

2024-02-08 11:48:16 0 [Note] Server socket created on IP: '::'.

2024-02-08 11:48:16 0 [Note] InnoDB: Buffer pool(

如何解决这个问题?

我尝试重新启动我的系统,但没有成功,我想也许端口正在被我启动的另一个程序使用。所以我停了下来

MariaDB 10.4.28-MariaDB

尝试过这些解决方案

  • 尝试停止 MySQL 服务
  • 使用 MySQL 备份文件夹
  • 尝试使用Shell修复MySQL数据库
  • 更改客户端和服务器端口
  • 删除ibdata1文件

我不想重新安装 XAMP,因为我不想丢失我的数据库

mysql xampp
1个回答
0
投票

我决定硬着头皮重新安装 XAMP,解决了我的问题。我想我需要开始定期备份数据库,以防再次发生这种情况。

© www.soinside.com 2019 - 2024. All rights reserved.