当前位置:网站首页>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
边栏推荐
- [4g/5g/6g topic foundation -147]: Interpretation of the white paper on 6G's overall vision and potential key technologies -2-6g's macro driving force for development
- asp. How to call vb DLL function in net project
- Pick up the premise idea of programming
- csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
- scrapy爬虫mysql,Django等
- flinkcdc 用sqlclient可以指定mysqlbinlog id执行任务吗
- 如何成为一名高级数字 IC 设计工程师(1-6)Verilog 编码语法篇:经典数字 IC 设计
- IIS redirection redirection appears eurl axd
- Unity shader (learn more about vertex fragment shaders)
- liunx命令
猜你喜欢
Using JWT to realize login function
nlohmann json
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力
[4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
PLC信号处理系列之开关量信号防抖FB
[Frida practice] "one line" code teaches you to obtain all Lua scripts in wegame platform
How to use clipboard JS library implements copy and cut function
Oracle安装增强功能出错
Over 100000 words_ Ultra detailed SSM integration practice_ Manually implement permission management
细说Mysql MVCC多版本控制
随机推荐
MongoDB怎么实现创建删除数据库、创建删除表、数据增删改查
flex弹性布局
数据建模中利用3σ剔除异常值进行数据清洗
JMeter JDBC batch references data as input parameters (the simplest method for the whole website)
根据热门面试题分析Android事件分发机制(一)
Kubernetes cluster capacity expansion to add node nodes
CDZSC_2022寒假个人训练赛21级(2)
Schema-validation: wrong column type encountered in column XXX in table XXX
H5 web player easyplayer How does JS realize live video real-time recording?
Octopus future star won a reward of 250000 US dollars | Octopus accelerator 2022 summer entrepreneurship camp came to a successful conclusion
C# XML的应用
【frida实战】“一行”代码教你获取WeGame平台中所有的lua脚本
[4g/5g/6g topic foundation -147]: Interpretation of the white paper on 6G's overall vision and potential key technologies -2-6g's macro driving force for development
小程序滑动、点击切换简洁UI
Addition, deletion, modification and query of ThinkPHP database
细说Mysql MVCC多版本控制
大佬们,请问 MySQL-CDC 有什么办法将 upsert 消息转换为 append only 消
C# Socke 服务器,客户端,UDP
flinkcdc 用sqlclient可以指定mysqlbinlog id执行任务吗
Information Security Experiment 3: the use of PGP email encryption software