【发布时间】:2015-06-10 15:52:30
【问题描述】:
我在 Windows 8(64 位)上安装了 XAMPP。在 XAMPP 控制面板中我无法启动 mySQL。我根据该链接将“C:/xampp/mysql/bin/my.ini”中mySQl的端口从3306更改为3307:
现在“my.ini”中的代码更改为:
[client]
# password = your_password
port = 3307
socket = "C:/xampp/mysql/mysql.sock"
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port= 3307
socket = "C:/xampp/mysql/mysql.sock"
现在它仍然给出这个错误:
11:31:48 AM [mysql] Attempting to start MySQL service...
11:31:56 AM [mysql] Status change detected: running
11:32:01 AM [mysql] Status change detected: stopped
11:32:01 AM [mysql] Error: MySQL shutdown unexpectedly.
11:32:01 AM [mysql] This may be due to a blocked port, missing dependencies,
11:32:01 AM [mysql] improper privileges, a crash, or a shutdown by another method.
11:32:01 AM [mysql] Press the Logs button to view error logs and check
11:32:01 AM [mysql] the Windows Event Viewer for more clues
11:32:01 AM [mysql] If you need more help, copy and post this
11:32:01 AM [mysql] entire log window on the forums
我删除了“C:\xampp\mysql\data”中的“ibdata1”文件。
也停止了 mysql56 服务。
感谢任何帮助。谢谢
【问题讨论】:
-
"按日志按钮查看错误日志并检查"
-
尝试使用 netstat 来检查阻塞端口和可用端口。如果 3306 端口正在使用中,请尝试关闭该进程。这样您就不需要更改端口。
标签: php mysql xampp windows-8.1