MySQL 会话不会在 XAMPP 上启动

1 php mysql xampp

我的 MySQL 无法启动,显示如下:

12:50:50  [mysql]   Error: MySQL shutdown unexpectedly.
12:50:50  [mysql]   This may be due to a blocked port, missing dependencies, 
12:50:50  [mysql]   improper privileges, a crash, or a shutdown by another method.
12:50:50  [mysql]   Press the Logs button to view error logs and check
12:50:50  [mysql]   the Windows Event Viewer for more clues
12:50:50  [mysql]   If you need more help, copy and post this
12:50:50  [mysql]   entire log window on the forums
Run Code Online (Sandbox Code Playgroud)

然后这是错误日志:

InnoDB: using atomic writes.
2020-03-05 12:50:47 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-03-05 12:50:47 0 [Note] InnoDB: Uses event mutexes
2020-03-05 12:50:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-03-05 12:50:47 0 [Note] InnoDB: Number of pools: 1
2020-03-05 12:50:47 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-03-05 12:50:47 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-03-05 12:50:47 0 [Note] InnoDB: Completed initialization of buffer pool
2020-03-05 12:50:48 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-03-05 12:50:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-03-05 12:50:48 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-03-05 12:50:48 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-03-05 12:50:48 0 [Note] InnoDB: Waiting for purge to start
2020-03-05 12:50:48 0 [Note] InnoDB: 10.4.11 started; log sequence number 300306; transaction id 171
2020-03-05 12:50:48 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-03-05 12:50:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-03-05 12:50:48 0 [Note] InnoDB: Buffer pool(s) load completed at 200305 12:50:48
2020-03-05 12:50:48 0 [Note] Server socket created on IP: '::'.
2020-03-05 12:50:48 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.


2020-03-05 12:50:48 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-03-05 12:50:48 0 [ERROR] Aborting
Run Code Online (Sandbox Code Playgroud)

这些错误的原因是什么,我该如何纠正它们?

太感谢了。

Moh*_*toa 7

对于这个问题去:

c:\xampp\mysql\data\

并删除除目录之外的所有文件

以防万一保留my.ini,如果再次出错,也删除my.ini。

我希望它能帮助你。