安装mysql8.0出现error 1042,无法正常启动解决方案

参考

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界面

发布了56 篇原创文章 · 获赞 5 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_37924509/article/details/103610361