当前位置:网站首页>The database of the server cannot be connected [the service has been started, the firewall has been closed, the port has been opened, and the netlent port is not connected]
The database of the server cannot be connected [the service has been started, the firewall has been closed, the port has been opened, and the netlent port is not connected]
2022-06-29 21:53:00 【Hua Weiyun】
The database of the server is disconnected 【 Service started 、 Firewall OFF 、 The port is open 、netlent Port failure 】
First of all : This article aims at The service is up 、 The firewall is closed 、 The security group port is also open , stay docker Containers can be connected MySQL, however Navicat You can't even , meanwhile netlent IP port Also different ,Navicat An error is as follows :

If you are such a wonderful problem , You can look at the following solutions .
First, confirm the firewall status
systemctl status firewalld

No problem , It's closed .
Look at the port
netstat -antulp | grep XXXX

No problem ,docker mysql The port is in use ,docker mysql If it's closed , Port is not used
Confirm whether the port corresponding to the security group of your server is open
telnet IP port Test the connection

As a result, the connection failed , Don't worry , Then down
Carry out orders :cat /proc/sys/net/ipv4/ip_forward

Be careful , Here is 0, It is not right ,0 Express
ipv4 Forwarding is offWe need to change it to 1
Carry out orders echo 1 > /proc/sys/net/ipv4/ip_forward

So we'll
Open the ipv4 forward
Navicat Reconnection

OK, That's it , I don't know what caused ipv4 forward Shut down the
Probable cause :
After restarting the server, it was restored
Some processes may have modified the system settings
We put ipv4 Just open forwarding , because To deploy a container in the server, you need to open it ip Forwarding function , Generally, we don't need to deal with it by ourselves , I don't know why I met , We can solve the problem by opening it .
Copyright notice :
Original Blogger : Cowherd Conan
Personal blog links :https://www.keafmd.top/
If it helps you , Thank you for clicking on the like support below !
[ ha-ha ][ Huai Quan ]
come on. !
Joint efforts !
Keafmd
边栏推荐
- Final training simple address book c language
- A keepalived high availability accident made me learn it again!
- How to use the DVD entry level in taro3.*
- Recruit | DBA Data Engineer every week with an annual salary of 35+. Dream of Kyushu and bright stars!
- 高校如何基于云原生构建面向未来的智慧校园?全栈云原生VS传统技术架构
- Houdini graphic notes: VAT (3.0) import ue4/5 setup wizard [official document translation]
- Shutter bottomnavigationbar with page switching example
- Yolov6 training your own data record +yolov5 comparison test
- 铝板AS/NZS 1530.1 不燃性材料的阻燃测试
- R language plot visualization: plot visualization box graph and several box plots of multiple classification variables
猜你喜欢

小型图书馆项目总结

CORDIC based Signal Processor desgn

Recruit | DBA Data Engineer every week with an annual salary of 35+. Dream of Kyushu and bright stars!

Verilog implements DDS waveform generator module, which can realize adjustable frequency and phase, three waveforms

报表交付工程师

Golang operation etcd

【ROS进阶篇】第二讲 自定义头、源文件封装

ASP. Net cross page submission (button control page redirection)

Implementation and Simulation of ads131a04 ADC Verilog

数字密码锁verilog设计+仿真+上板验证
随机推荐
尚硅谷实时数据仓库项目(阿里云实时数仓)
Verilog implements DDS waveform generator module, which can realize adjustable frequency and phase, three waveforms
高校如何基于云原生构建面向未来的智慧校园?全栈云原生VS传统技术架构
About Effect Size
硅树脂油漆申请美国标准UL 790 Class A 合适吗?
MES系统究竟有何独特之处?
Viewing technological changes through Huawei Corps (V): smart Park
leetcode:307. Area and retrieval - array modifiable
Knowledge distilling learning notes
Star ring technology data security management platform defender heavy release
CLI tool foundation of ros2 robot f1tenth
Detailed explanation of key points in implementing MES system in Enterprises
Don't worry about form deformation anymore
What is unique about MES system?
Datakit acts as an API server for local data acquisition
Is it safe to open a securities account in Caixue school?
Goahead translation - Active Server Pages
亚马逊关键词搜索API接口(item_search-按关键字搜索亚马逊商品接口),亚马逊API接口
Golang operation etcd
2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry