安装MYSQL 社区版 mysql 8.0.30

本文详细记录了在Windows上安装MySQL 8.0.30社区版过程中遇到的防火墙规则问题,包括添加Windows Firewall规则和解决连接错误。重点讲述了如何解决无权限启动服务的问题,最终成功安装并登录工作台。
摘要由CSDN通过智能技术生成

https://dev.mysql.com/downloads/

上面地址下载

安装社区版,选择开发者选项

mysql社区版 8.0.30, 直接都下一步,下一步的安装

安装进度一直在显示 

安装完成, 下一步

 开发者

 输入密码:

增加用户 sa 

又是一番执行

启动服务失败, 看 log


Beginning configuration step: Updating Windows Firewall rules

Adding a Windows Firewall rule for MySQL80 on port 3306.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow
确定。


Successfully added the Windows Firewall rule.
Adding a Windows Firewall rule for MySQL80 on port 33060.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 33060" protocol=TCP localport=33060 dir=in action=allow
确定。
 


Attempting to start service MySQL80...
Failed to start service MySQL80.
Waiting until a connection to MySQL Server 8.0.30 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 2: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 3: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 4: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 5: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 6: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 7: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 8: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 9: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Waiting 5 seconds before the next connection attempt...
Retry 10: Attempting to connect to Mysql@localhost:3306 with user root with no password...
Unknown error: 发生一个或多个错误。
Failed to connect to MySQL Server 8.0.30 after 10 attempts.
Ended configuration step: Starting the server
 

 
Attempting to start service MySQL80...
Failed to start service MySQL80.
Waiting until a connection to MySQL Server 8.0.30 can be established (with a maximum of 10 attempts)...
Retry 1: Attempting to connect to Mysql@localhost:3306 with user root with no password...

以上是没有权限造成, 

解决方法

解决步骤如下:
右击 电脑–>管理–>本地用户和组–>组–>双击Administrators–>添加–>高级
把NETWORK SERVICE添加到Administrators组

完成

 以上默认

 

可以选择拷贝日志到 剪贴板

完成

以上即全部安装完成

工作台可以登录

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值