无法在 XAMPP 中启动 MySQL? [英] Can't start MySQL in XAMPP?

查看:45
本文介绍了无法在 XAMPP 中启动 MySQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图使用我制作的这个登录系统,它开始给我一些奇怪的错误.我发现这是因为 MySQL 没有启动.所以我试图启动它,但它不会.这是日志:

So I was trying to use this login system I made and it started giving me weird errors. I figured out that it was because MySQL wasn't started. So I tried to start it, but it wouldn't. Here is the log:

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) 中一些更值得注意的行:

And here is some of the more notable lines in the error log (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 的情况下修复这些错误?

Can these errors be fixed without reinstalling XAMPP?

推荐答案

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

I just reinstalled it and kept the htdocs folder.

这篇关于无法在 XAMPP 中启动 MySQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆