Xampp 和 MySQL 未开始
Xampp and MySQL not started
这个问题不知从何而来。
我的xamppmysql服务没有启动。这是它在 Xampp 日志中显示的内容。
8:20:27 AM [mysql] Attempting to start MySQL app...
8:20:27 AM [mysql] Executing ""c:\xampp\mysql\bin\mysqld.exe" --defaults-file="c:\xampp\mysql\bin\my.ini" --standalone"
8:20:28 AM [mysql] Return code: 0
8:20:28 AM [mysql] Status change detected: running
8:20:29 AM [mysql] Status change detected: stopped
8:20:29 AM [mysql] Error: MySQL shutdown unexpectedly.
8:20:29 AM [mysql] This may be due to a blocked port, missing dependencies,
8:20:29 AM [mysql] improper privileges, a crash, or a shutdown by another method.
8:20:29 AM [mysql] Press the Logs button to view error logs and check
8:20:29 AM [mysql] the Windows Event Viewer for more clues
8:20:29 AM [mysql] If you need more help, copy and post this
8:20:29 AM [mysql] entire log window on the forums
还有日志文件
151206 8:24:31 [Note] InnoDB: Using mutexes to ref count buffer pool pages
151206 8:24:31 [Note] InnoDB: The InnoDB memory heap is disabled
151206 8:24:31 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
151206 8:24:31 [Note] InnoDB: Memory barrier is not used
151206 8:24:31 [Note] InnoDB: Compressed tables use zlib 1.2.3
151206 8:24:31 [Note] InnoDB: Not using CPU crc32 instructions
151206 8:24:31 [Note] InnoDB: Initializing buffer pool, size = 16.0M
151206 8:24:31 [Note] InnoDB: Completed initialization of buffer pool
151206 8:24:31 [Note] InnoDB: Highest supported file format is Barracuda.
151206 8:24:31 [Note] InnoDB: 128 rollback segment(s) are active.
151206 8:24:31 [Note] InnoDB: Waiting for purge to start
151206 8:24:31 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1602572
151206 8:24:31 [Note] Server socket created on IP: '127.0.0.1'.
主要是由于被阻止 ports
。默认情况下 MySql
运行 在端口 3306
.
Check which application is using port 3306
在 Xampp > Click NetStat
中,它会向您显示具有 运行ning 端口的所有应用程序。
一旦您找到运行正在端口3306
上的哪个应用程序。终止(关闭)该应用程序并尝试启动 MySql
现在它应该可以正常工作了。
如果您需要其他应用程序(使用端口 3306
)确保 Mysql
先启动,以便其他应用程序找到其他端口启动。
如果此方法不起作用,只需将 port
更改为 MySql
要更改 MySql port
在 line 1262
上编辑 php.ini
(您的可能不同)并将 MySql port
从 3306
更改为 [=26] 之间的任何数字=] 并确保这些端口未被任何其他应用程序使用
如果仍然无法正常工作,重新安装 xampp
可能有助于解决问题
这个问题不知从何而来。
我的xamppmysql服务没有启动。这是它在 Xampp 日志中显示的内容。
8:20:27 AM [mysql] Attempting to start MySQL app...
8:20:27 AM [mysql] Executing ""c:\xampp\mysql\bin\mysqld.exe" --defaults-file="c:\xampp\mysql\bin\my.ini" --standalone"
8:20:28 AM [mysql] Return code: 0
8:20:28 AM [mysql] Status change detected: running
8:20:29 AM [mysql] Status change detected: stopped
8:20:29 AM [mysql] Error: MySQL shutdown unexpectedly.
8:20:29 AM [mysql] This may be due to a blocked port, missing dependencies,
8:20:29 AM [mysql] improper privileges, a crash, or a shutdown by another method.
8:20:29 AM [mysql] Press the Logs button to view error logs and check
8:20:29 AM [mysql] the Windows Event Viewer for more clues
8:20:29 AM [mysql] If you need more help, copy and post this
8:20:29 AM [mysql] entire log window on the forums
还有日志文件
151206 8:24:31 [Note] InnoDB: Using mutexes to ref count buffer pool pages
151206 8:24:31 [Note] InnoDB: The InnoDB memory heap is disabled
151206 8:24:31 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
151206 8:24:31 [Note] InnoDB: Memory barrier is not used
151206 8:24:31 [Note] InnoDB: Compressed tables use zlib 1.2.3
151206 8:24:31 [Note] InnoDB: Not using CPU crc32 instructions
151206 8:24:31 [Note] InnoDB: Initializing buffer pool, size = 16.0M
151206 8:24:31 [Note] InnoDB: Completed initialization of buffer pool
151206 8:24:31 [Note] InnoDB: Highest supported file format is Barracuda.
151206 8:24:31 [Note] InnoDB: 128 rollback segment(s) are active.
151206 8:24:31 [Note] InnoDB: Waiting for purge to start
151206 8:24:31 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1602572
151206 8:24:31 [Note] Server socket created on IP: '127.0.0.1'.
主要是由于被阻止 ports
。默认情况下 MySql
运行 在端口 3306
.
Check which application is using port
3306
在 Xampp > Click NetStat
中,它会向您显示具有 运行ning 端口的所有应用程序。
一旦您找到运行正在端口3306
上的哪个应用程序。终止(关闭)该应用程序并尝试启动 MySql
现在它应该可以正常工作了。
如果您需要其他应用程序(使用端口 3306
)确保 Mysql
先启动,以便其他应用程序找到其他端口启动。
如果此方法不起作用,只需将 port
更改为 MySql
要更改 MySql port
在 line 1262
上编辑 php.ini
(您的可能不同)并将 MySql port
从 3306
更改为 [=26] 之间的任何数字=] 并确保这些端口未被任何其他应用程序使用
如果仍然无法正常工作,重新安装 xampp
可能有助于解决问题