Blogger Information
Blog 175
fans 1
comment 0
visits 384349
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
centos7 navicat连接数据库报错Mysql默认不允许远程登录,所以需要设置防火墙开放3306端口
dxp2tq的博客
Original
1494 people have browsed it

2003 - Cant’t connect to MySQL server on ip (10060 “Unknown error”)

原因:
Mysql默认不允许远程登录,所以需要设置防火墙开放3306端口

解决办法
开放3306 端口
firewall-cmd —zone=public —add-port=3306/tcp —permanent

命令含义

—zone #作用域
—add-port=3306/tcp #添加端口,格式为:端口/通讯协议
—permanent #永久生效
1
2
3
4
重启防火墙
systemctl restart firewalld.service
测试成功

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post