XAMPP - MySQL意外关闭

问题描述 投票:0回答:2

我在Windows 8(64位)上安装了XAMPP。在XAMPP控制面板中,我无法启动mySQL。我根据该链接将“C:/xampp/mysql/bin/my.ini”中的mySQl端口从3306更改为3307:

xampp MySQL does not start

现在“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服务。

任何帮助表示赞赏。谢谢

php mysql xampp windows-8.1
2个回答
1
投票

检查错误日志以查看有关该主题的更多详细信息。检查mysqlmysqlimy.ini中的php.iniconfig.inc.php端口选项是否匹配并且是3307

如果MySQL服务器崩溃了你可能想看看Forcing InnoDB Recovery

另外,如果它是第三方软件问题,请查看此solution


0
投票

就像@Peter所说,你需要改变那个文件配置。

尝试在你的xampp文件夹ex:C:\xampp\php\php.ini中更改:

mysql.default_port=3307
mysqli.default_port=3307

并在xampp文件夹ex:C:\xampp\mysql\bin\my.ini中更改此参数:

[client] 
# password       = your_password 
port            = 3307
socket          = "C:/xampp/mysql/mysql.sock"

[mysqld]
port= 3307
© www.soinside.com 2019 - 2024. All rights reserved.