Attempting to connect to Mysql@localhost:3306 with user root with no password

今天在win10上安装的 mysql8(mysql8.0.12.0) 的时候,安装一直卡在Starting Server…

查看log日志如下:

Beginning configuration step: Starting Server
Attempting to start service MySQL80…
Failed to start service MySQL80.
Waiting until a connection to MySQL Server 8.0.12 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.
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 3 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.
MySQL error 1042: Unable to connect to any of the specified MySQL hosts.
Waiting 3 seconds before the next connection attempt…

Failed to connect to MySQL Server 8.0.12 after 10 attempts.
Ended configuration step: Starting Server

解决方法:

打开本地服务(services.msc),然后找到mysql的服务

双击打开,然后点击顶部第二个“登录”,将登录身份改为本地系统账户,然后点击右下角应用

再回到mysql安装界面,重试即可。


40 Clicks !

发表评论

电子邮件地址不会被公开。 必填项已用*标注