【问题标题】:Unable to start the MySQL80 service on local computer无法在本地计算机上启动 MySQL80 服务
【发布时间】:2020-03-19 19:30:02
【问题描述】:

我正在安装 MySQL8.0.18。在应用配置时,每当我按下执行时,它都会在starting the server 上停止并且不配置它。在日志选项卡中,它说:

Beginning configuration step: Starting the server
Attempting to start service MySQL80...
Failed to start service MySQL80.
Waiting until a connection to MySQL Server 8.0.18 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...    
Retry 2: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 3: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 4: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 5: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 6: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 7: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 8: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 9: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 5 seconds before the next connection attempt...
Retry 10: Attempting to connect to Mysql@localhost:3306 with user root with no password...
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Failed to connect to MySQL Server 8.0.18 after 10 attempts.
Ended configuration step: Starting the server 

我不知道是位置错误还是什么,因为我将设置保存在E:\setups\mySQL\setup。它给出了快照中显示的错误。 我尝试按照the first answer here解决,但似乎没有帮助。

我尝试重新安装它,但它仍然以某种方式给出相同的错误。我该怎么办?

【问题讨论】:

  • 我将首先在 Windows 事件查看器中查找来自 MYSQL 的错误消息
  • 另外,“可执行文件路径”看起来很奇怪。我会卸载 MySQL 并再次开始安装,确保使用管理员帐户运行它
  • @RiggsFolly windows 甚至查看器如何提供帮助?
  • windows 事件查看器如何帮助 MYSQL 在打开自己的文本日志之前将错误记录到事件日志中。因此,如果您查看事件查看器 您可能会看到问题是什么,因为您可能会看到错误消息
  • @nbk 我试图从服务中手动启动它,但它没有帮助

标签: mysql


【解决方案1】:

嗯,MySQL 中的错误 2 仅仅是由于缺少文件或位置错误。您尝试运行的服务的路径可能错误或丢失。


这里有一些相同问题的参考

可能的解决方案:

检查 MySQL80 服务的路径是否正确,所有文件是否存在并具有正确的执行和网络权限。如果不起作用,您可以随时使用不同的版本要查看它是否在那里工作,如果可以,请在新版本中报告错误。

【讨论】:

    【解决方案2】:

    我不知道,如果我们有相同的Mysql程序设计,我使用的是最新版本8.0.26。试试这个: 打开你的 sql 编辑器 -> 转到屏幕左侧的导航器部分 -> 在 -Instance 内部 - 选择 Startup/Shutdown 。

    然后点击-启动服务器-按钮。

    如果不行,或者程序崩溃了,进入windows搜索工具,输入-Services-然后搜索Mysql服务,然后点击-start-应该关闭了....

    希望这项工作..

    【讨论】:

    • 同时检查以确认该端口是否可用或未被其他服务使用
    猜你喜欢
    • 1970-01-01
    • 2019-10-21
    • 2016-12-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-05
    • 1970-01-01
    • 2014-04-29
    相关资源
    最近更新 更多