当前位置:网站首页>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
边栏推荐
猜你喜欢
VSCode+mingw64
小程序弹出半角遮罩层
Unity shader (learn more about vertex fragment shaders)
Unity shader (basic concept)
Diffusion模型详解
csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力
基于智慧城市与储住分离数字家居模式垃圾处理方法
Information Security Experiment 4: implementation of IP packet monitoring program
Information Security Experiment 3: the use of PGP email encryption software
随机推荐
基础篇:带你从头到尾玩转注解
How to speed up video playback in browser
剑指 Offer II 107. 矩阵中的距离
【无标题】
CSDN salary increase technology - learn about the use of several common logic controllers of JMeter
Communication mode between processes
C# 初始化程序时查看初始化到哪里了示例
Unity uses mesh to realize real-time point cloud (II)
哈夫曼编码压缩文件
Can flycdc use SqlClient to specify mysqlbinlog ID to execute tasks
csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
How to become a senior digital IC Design Engineer (5-3) theory: ULP low power design technology (Part 2)
How to solve the problem of golang select mechanism and timeout
IIS redirection redirection appears eurl axd
用flinksql的方式 写进 sr的表,发现需要删除的数据没有删除,参照文档https://do
esp8266使用TF卡并读写数据(基于arduino)
小程序实现页面多级来回切换支持滑动和点击操作
牛客网——华为题库(61~70)
How to use Mongo shake to realize bidirectional synchronization of mongodb in shake database?
sqlplus乱码问题,求解答