无法在本地计算机上启动MySQL80服务

时间:2019-11-24 08:51:18

标签: mysql

我正在安装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解决此问题,但似乎无济于事。

cannot find the file

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

2 个答案:

答案 0 :(得分:1)

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


以下是有关同一问题的一些参考资料

可能的解决方案:

检查服务MySQL80的路径是否正确,并且所有文件都具有正确的执行和网络权限。。如果没有任何效果,则始终可以使用不同版本要查看其是否正常运行,请在新版本中报告错误

答案 1 :(得分:-1)

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

然后点击 -Start server -button。

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

希望这项工作..