当前位置:网站首页>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
边栏推荐
- 网易云微信小程序
- 【无标题】
- csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
- Difference between interface iterator and iteratable
- Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
- Addition, deletion, modification and query of ThinkPHP database
- flink. CDC sqlserver. 可以再次写入sqlserver中么 有连接器的 dem
- Switching value signal anti shake FB of PLC signal processing series
- Information Security Experiment 4: implementation of IP packet monitoring program
- sql 里面使用中文字符判断有问题,哪位遇到过?比如value<>`无`
猜你喜欢
沙龙预告|GameFi 领域的瓶颈和解决方案
nlohmann json
Lesson 1: finding the minimum of a matrix
细说Mysql MVCC多版本控制
Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
基于智慧城市与储住分离数字家居模式垃圾处理方法
小程序实现页面多级来回切换支持滑动和点击操作
面试被问到了解哪些开发模型?看这一篇就够了
VSCode+mingw64+cmake
What development models did you know during the interview? Just read this one
随机推荐
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力
PostgreSQL创建触发器的时候报错,
第一讲:寻找矩阵的极小值
The configuration and options of save actions are explained in detail, and you won't be confused after reading it
Use 3 in data modeling σ Eliminate outliers for data cleaning
【原创】程序员团队管理的核心是什么?
How does mongodb realize the creation and deletion of databases, the creation of deletion tables, and the addition, deletion, modification and query of data
在EXCEL写VBA连接ORACLE并查询数据库中的内容
iNFTnews | 时尚品牌将以什么方式进入元宇宙?
基于智慧城市与储住分离数字家居模式垃圾处理方法
如何成为一名高级数字 IC 设计工程师(5-2)理论篇:ULP 低功耗设计技术精讲(上)
信息安全实验三 :PGP邮件加密软件的使用
Communication mode between processes
Colorbar of using vertexehelper to customize controls (II)
Dynamics 365online applicationuser creation method change
nlohmann json
农牧业未来发展蓝图--垂直农业+人造肉
进程间的通信方式
Difference between process and thread
第一讲:包含min函数的栈