无法启动 MySQL 服务。错误 0

发布于 2024-09-30 23:25:04 字数 73 浏览 0 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浮云落日 2024-10-07 23:25:04

如果您重新安装或升级 MySQL 而不首先停止并删除现有 MySQL 服务并使用 MySQL 配置向导安装 MySQL,您可能会看到以下错误:
错误:无法为 MySql 创建 Windows 服务。错误:0

当配置向导尝试安装服务并找到同名的现有服务时,会发生这种情况。

解决此问题的一种方法是在使用配置向导时选择 mysql 以外的服务名称。这使得新服务能够正确安装,但过时的服务仍保留在原处。尽管这无害,但最好删除不再使用的旧服务。

要永久删除旧的 mysql 服务,请以具有管理权限的用户身份在命令行上执行以下命令:

外壳> sc删除mysql
[SC]删除服务成功

如果 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

If you reinstall or upgrade MySQL without first stopping and removing the existing MySQL service and install MySQL using the MySQL Configuration Wizard, you may see this error:
Error: Cannot create Windows service for MySql. Error: 0

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:

shell> sc delete mysql
[SC] DeleteService SUCCESS

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

若言繁花未落 2024-10-07 23:25:04

通常,当服务无法启动时,某个地方会出现更详细的错误信息:

  • 在 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 file

  • In the system's error log (In english-language Windows, it's called event log I think)

you need to look there for the reason.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文