XAMPP控制面板-错误:MySQL意外关闭

XAMPP控制面板-错误:MySQL意外关闭,mysql,xampp,Mysql,Xampp,我无法在XAMPP控制面板中运行MYSQL服务器,当我单击开始按钮时,出现以下错误,如下所示: 4:48:58 PM [mysql] Attempting to start MySQL app... 4:48:58 PM [mysql] Status change detected: running 4:49:00 PM [mysql] Status change detected: stopped 4:49:00 PM [mysql] Error: My

我无法在XAMPP控制面板中运行MYSQL服务器,当我单击开始按钮时,出现以下错误,如下所示:

4:48:58 PM  [mysql]     Attempting to start MySQL app...
4:48:58 PM  [mysql]     Status change detected: running
4:49:00 PM  [mysql]     Status change detected: stopped
4:49:00 PM  [mysql]     Error: MySQL shutdown unexpectedly.
4:49:00 PM  [mysql]     This may be due to a blocked port, missing dependencies, 
4:49:00 PM  [mysql]     improper privileges, a crash, or a shutdown by another method.
4:49:00 PM  [mysql]     Press the Logs button to view error logs and check
4:49:00 PM  [mysql]     the Windows Event Viewer for more clues
4:49:00 PM  [mysql]     If you need more help, copy and post this
4:49:00 PM  [mysql]     entire log window on the forums
4:49:25 PM  [main]  Executing "c:\xampp\mysql\data"
以下是mysql错误日志:

InnoDB: using atomic writes.
2020-09-22 16:47:41 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-09-22 16:47:41 0 [Note] InnoDB: Uses event mutexes
2020-09-22 16:47:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-22 16:47:41 0 [Note] InnoDB: Number of pools: 1
2020-09-22 16:47:41 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-22 16:47:41 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-09-22 16:47:41 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-22 16:47:41 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
2020-09-22 16:47:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-22 16:47:41 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-09-22 16:47:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-22 16:47:41 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-22 16:47:41 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-09-22 16:47:41 0 [Note] InnoDB: Waiting for purge to start
2020-09-22 16:47:41 0 [Note] InnoDB: 10.4.14 started; log sequence number 300297; transaction id 171
2020-09-22 16:47:41 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-09-22 16:47:41 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-22 16:47:42 0 [Note] Server socket created on IP: '::'.
2020-09-22 16:47:42 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-09-22 16:47:42 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-09-22 16:47:42 0 [ERROR] Aborting
InnoDB: using atomic writes.
2020-09-22 16:48:58 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-09-22 16:48:58 0 [Note] InnoDB: Uses event mutexes
2020-09-22 16:48:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-22 16:48:58 0 [Note] InnoDB: Number of pools: 1
2020-09-22 16:48:58 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-09-22 16:48:58 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-09-22 16:48:58 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-22 16:48:58 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-22 16:48:58 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-22 16:48:58 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-22 16:48:58 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-09-22 16:48:58 0 [Note] InnoDB: Waiting for purge to start
2020-09-22 16:48:58 0 [Note] InnoDB: 10.4.14 started; log sequence number 300306; transaction id 171
2020-09-22 16:48:58 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-09-22 16:48:58 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-22 16:48:58 0 [Note] Server socket created on IP: '::'.
2020-09-22 16:48:58 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-09-22 16:48:58 0 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2020-09-22 16:48:58 0 [ERROR] Aborting
请帮助我尽快解决这个错误,因为我想在XAMPP中使用phpmyadmin来开始我的项目, 多谢各位

2020-09-22 16:48:58 0[错误]端口3306上是否已运行另一台mysqld服务器? 2020-09-22 16:48:58 0[错误]正在中止

端口3306(默认)似乎已经在使用中。您可以通过切换到另一个端口来解决此问题

您可以打开
my.ini

# The following options will be passed to all MySQL clients
[client] 
# password = your_password 
port = 3306
socket = "xampp / mysql / mysql.sock"
更改
3306
-->
另一个端口

# The MySQL server
[mysqld]
port= 3306
socket = "xampp / mysql / mysql.sock"
更改
3306
-->
另一个端口

# The MySQL server
[mysqld]
port= 3306
socket = "xampp / mysql / mysql.sock"

然后,您重新启动mysql服务。

我解决了问题,错误是端口3360不可用,因为我系统上安装的mysql服务器使用的是同一端口,所以我转到搜索栏中的服务,然后打开后转到mysql单击它,然后单击停止服务。然后重新启动xampp并启动mysql,然后它在windows 10中运行良好。您需要检查其他操作系统。

3306端口似乎已经在使用中。请检查端口3306上运行的是什么。@SaachiTech是的,我的系统上已经安装了mysql数据库。我想在XAMPP中使用phpmyadmin如何进一步操作您可能已经运行了MySQL。请使用
netstat-an
检查哪个服务使用了3306端口。尝试
netstat-a-n-o |查找“3306”
yes@SaachiTech我运行了命令netstat-an,端口3306处于侦听状态。