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.
一、问题描述
mysql已经发展到了8.0阶段,但是很多人在下载了安装了mysql8.0后,在快接近完成的阶段下出现了异常:
error 1042:Unable to connect to any of the specified MySQL hosts
上述异常直接导致mysql无法正常Finish,如图所示:

image.png

image.png
二、解决方案
1、windows端使用Win+R --> 运行 "services.msc" --> 打开service服务管理器,找到刚才安装mysql的服务名称

image.png
2、右键 --> 属性 --> 登录,更改成“本地系统账户” --> 确定

image.png
3、回到安装程序,在次点击Execute,会发现已经可以成功到Finish界面

本文详细介绍了在安装MySQL8.0过程中遇到的Error1042问题,即无法连接到指定的MySQL主机。文章提供了具体的解决步骤,包括在Windows环境下通过服务管理器更改服务登录账户为本地系统账户,从而成功完成安装。
995





