当前位置:网站首页>Can't connect to MySQL server on '(10060) solution summary
Can't connect to MySQL server on '(10060) solution summary
2022-07-07 09:45:00 【qq_ thirty-six million nine hundred and sixty-seven thousand an】
Mode one :
Because the server is not open to the public mysql Default port for 3306 Lead to
CentOs7 The following opening methods
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
iptables save
service iptables restart
CnetOs7 Opening mode
firewall-cmd --permanent --zone=public --add-port=3306/tcp
firewall-cmd --reload
Mode two :
Failure to set remote user access resulted in
Connect on server mysql
use mysql;
select host,user from user;
±----------±-----+
| host | user |
±----------±-----+
| % | root |
| 127.0.0.1 | root |
host Where is the representative host You can use this user to remotely access % For any
The following opening method is root The user, for example
grant all privileges on . to ‘root’@’%’ identified by ‘root User's password ’;
flush privileges;
Mode three :
If you use alicloud ECS You need to add security group rules manually
Administrative console > example > Click more on the far right > Network and security groups > Security group configuration > Configuration rules > Add security group rule
Finally, restart the server , Generally, it will take effect without restarting
If none of the above methods solve the problem , Try turning off the firewall on this computer
边栏推荐
- IIS faked death this morning, various troubleshooting, has been solved
- C# Socke 服务器,客户端,UDP
- Communication mode between processes
- CDZSC_2022寒假个人训练赛21级(2)
- 细说Mysql MVCC多版本控制
- 4、 Fundamentals of machine learning
- Octopus future star won a reward of 250000 US dollars | Octopus accelerator 2022 summer entrepreneurship camp came to a successful conclusion
- Upload taro pictures to Base64
- 战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
- 其实特简单,教你轻松实现酷炫的数据可视化大屏
猜你喜欢
Arthas simple instructions
章鱼未来之星获得25万美金奖励|章鱼加速器2022夏季创业营圆满落幕
信息安全实验三 :PGP邮件加密软件的使用
基础篇:带你从头到尾玩转注解
Netease cloud wechat applet
What development models did you know during the interview? Just read this one
nlohmann json
[4G/5G/6G专题基础-146]: 6G总体愿景与潜在关键技术白皮书解读-1-总体愿景
sqlplus乱码问题,求解答
Detailed explanation of diffusion model
随机推荐
Scratch crawler mysql, Django, etc
How to become a senior digital IC Design Engineer (5-3) theory: ULP low power design technology (Part 2)
细说Mysql MVCC多版本控制
第一讲:包含min函数的栈
CDZSC_2022寒假个人训练赛21级(2)
CodeForces - 1324D Pair of Topics(二分或双指针)
基于智慧城市与储住分离数字家居模式垃圾处理方法
First issue of JS reverse tutorial
如何成为一名高级数字 IC 设计工程师(1-6)Verilog 编码语法篇:经典数字 IC 设计
Netease cloud wechat applet
Mysql:select ... for update
Elaborate on MySQL mvcc multi version control
ViewPager2和VIewPager的区别以及ViewPager2实现轮播图
thinkphp数据库的增删改查
剑指 Offer II 107. 矩阵中的距离
Oracle安装增强功能出错
Over 100000 words_ Ultra detailed SSM integration practice_ Manually implement permission management
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
Niuke - Huawei question bank (61~70)
网易云微信小程序