2013-03-19 195 views
1

所以我试图使用我制作的这个登录系统,它开始给我奇怪的错误。我发现这是因为MySQL没有启动。所以我试图启动它,但它不会。下面是日志:无法在XAMPP中启动MySQL?

10:06:12 PM [mysql] Attempting to start MySQL app... 
10:06:12 PM [mysql] Status change detected: running 
10:06:13 PM [mysql] Status change detected: stopped 
10:06:13 PM [mysql] Error: MySQL shutdown unexpectedly. 
10:06:13 PM [mysql] This may be due to a blocked port, missing dependencies, 
10:06:13 PM [mysql] improper privileges, a crash, or a shutdown by another method 
10:06:13 PM [mysql] Check the "/xampp/mysql/data/mysql_error.log" file 
10:06:13 PM [mysql] and the Windows Event Viewer for more clues 

这里是一些比较显着的线在错误日志(mysql_error.log):

130318 22:06:12 InnoDB: Database was not shut down normally! 
130318 22:06:12 InnoDB: Waiting for the background threads to start 
130318 22:06:13 InnoDB: 1.1.8 started; log sequence number 1599518 
130318 22:06:13 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 
130318 22:06:13 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 
130318 22:06:13 [Note] Server socket created on IP: '0.0.0.0'. 
130318 22:06:13 [ERROR] Fatal error: Can't open and lock privilege tables: Can't 
         find file: 'host' (errno: 2) 

可这些错误被固定而无需重新安装XAMPP?

+1

可能是其他一些服务可能使用mysql端口 – 2013-03-19 03:38:46

+0

从Skype退出。 – 2013-03-19 03:40:26

+0

没有安装skype – 2013-03-19 03:46:38

回答

1

我刚刚重新安装它并保留htdocs文件夹。

3

停止计算机中的另一台Mysql服务器。您可以显示它打开TaskManager 停止或删除另一台服务器并重新启动xammp

+0

如何“停止或删除其他服务器并重新启动xammp”。我停止了“taskhost.exe”的事情。是吗?我也尝试重新启动我的电脑,因为这会清除过程',对吧?仍然不起作用。 – 2013-03-19 03:33:15

+0

检查名为“mysql”的服务。检查是否开始?并检查它的路径..是从你的xampp的MySQL? – 2013-03-19 03:35:57

+0

Theres没有什么叫“mysql”的服务,是的。 – 2013-03-19 03:41:48

1

我得到了同样的错误,但检查服务显示一个MySQL服务运行,所以我停下来,现在它的工作。我通过以管理员身份运行的XAMPP控制面板并从那里获取服务。

2

在管理员模式下打开XAMPP控制面板并卸载MySQL服务,然后再次重新安装它为我工作。为此,请选中并取消选中提供的快照中的圈选复选框。这里是图片... How to install & unstall the MySQL service