当前位置:网站首页>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
边栏推荐
猜你喜欢
章鱼未来之星获得25万美金奖励|章鱼加速器2022夏季创业营圆满落幕
Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
[bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction
Information Security Experiment 3: the use of PGP email encryption software
H5 web player easyplayer How does JS realize live video real-time recording?
In fact, it's very simple. It teaches you to easily realize the cool data visualization big screen
[Frida practice] "one line" code teaches you to obtain all Lua scripts in wegame platform
[4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
[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
Dynamics 365Online ApplicationUser创建方式变更
随机推荐
What is MD5
小程序弹出半角遮罩层
golang select机制和超时问题怎么解决
沙龙预告|GameFi 领域的瓶颈和解决方案
Install pyqt5 and Matplotlib module
Unity3d interface is embedded in WPF interface (mouse and keyboard can respond normally)
PostgreSQL创建触发器的时候报错,
Strategic cooperation subquery becomes the secret weapon of Octopus web browser
Unity uses mesh to realize real-time point cloud (II)
Oracle安装增强功能出错
[4G/5G/6G专题基础-146]: 6G总体愿景与潜在关键技术白皮书解读-1-总体愿景
Unity shader (learn more about vertex fragment shaders)
sqlplus乱码问题,求解答
Schema-validation: wrong column type encountered in column XXX in table XXX
Database multi table Association query problem
Impression notes finally support the default markdown preview mode
根据热门面试题分析Android事件分发机制(一)
Netease Cloud Wechat applet
H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
2020浙江省赛