无法启动 MySQL 服务。错误 0
当我尝试配置 MySQL 实例时,出现以下错误,有人可以帮助解决此错误吗?
我使用的是Windows XP SP2。
I am getting the following error when I try to configure MySQL instance, could any one help out to resolve this error.
I am using Windows XP SP2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当配置向导尝试安装服务并找到同名的现有服务时,会发生这种情况。
解决此问题的一种方法是在使用配置向导时选择 mysql 以外的服务名称。这使得新服务能够正确安装,但过时的服务仍保留在原处。尽管这无害,但最好删除不再使用的旧服务。
要永久删除旧的 mysql 服务,请以具有管理权限的用户身份在命令行上执行以下命令:
如果 sc 实用程序不适用于您的 Windows 版本,请从 http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/delsrv-o.asp 并使用 delsrv mysql 语法。
-- http://dev.mysql.com/doc/refman/5.0/en/ windows-troubleshooting.html
This occurs when the Configuration Wizard tries to install the service and finds an existing service with the same name.
One solution to this problem is to choose a service name other than mysql when using the configuration wizard. This enables the new service to be installed correctly, but leaves the outdated service in place. Although this is harmless, it is best to remove old services that are no longer in use.
To permanently remove the old mysql service, execute the following command as a user with administrative privileges, on the command-line:
If the sc utility is not available for your version of Windows, download the delsrv utility from http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/delsrv-o.asp and use the delsrv mysql syntax.
-- http://dev.mysql.com/doc/refman/5.0/en/windows-troubleshooting.html
通常,当服务无法启动时,某个地方会出现更详细的错误信息:
在 mySQL 的
your_hostname_here.err
文件中在系统的错误日志中(在英文Windows中,我认为它称为事件日志)
你需要去那里寻找原因。
Usually when the service doesn't manage to start, there will be more detailed information about what went wrong somewhere:
In mySQL's
your_hostname_here.err
fileIn the system's error log (In english-language Windows, it's called event log I think)
you need to look there for the reason.