Xampp和MySQL没有启动

时间:2015-12-06 06:27:17

标签: mysql xampp

这个问题来自任何地方。

我的xampp mysql服务未启动。这是它在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'.

1 个答案:

答案 0 :(得分:2)

主要是因为ports被阻止了。默认情况下MySql在端口3306上运行。

  

检查哪个应用程序正在使用端口3306

Xampp > Click NetStat中,它会显示所有运行端口的应用程序。

找到端口3306上正在运行的应用程序。杀死(关闭)该应用程序并尝试启动MySql现在它应该可以正常工作。

如果您需要其他应用程序(使用端口3306),请确保Mysql先启动,以便其他应用程序找到其他端口启动。

如果此方法不起作用,只需更改port的{​​{1}}

要更改MySql上的MySql port修改php.ini(您可能会有所不同),并将line 1262MySql port更改为3306之间的任意数字并确保这些端口不被任何其他应用程序使用

如果仍然无法正常工作,重新安装0 to 65536可能有助于解决问题

相关问题