当前位置:网站首页>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
边栏推荐
- flutter BottomNavigationBar切换页面保持状态
- Recommended books -- walking in the daytime and at night
- Golang operation NSQ distributed message queue
- LeetCode 1. 两数之和
- 证券开户选择哪个证券另外想问,现在在线开户安全么?
- STM32 minimum system construction (schematic diagram)
- Bs-gx-018 student examination system based on SSM
- Bs-gx-017 online examination management system based on SSM
- A. Marathon
- 每周招聘|DBA数据工程师,年薪35+ ,梦起九州,星河灿烂!
猜你喜欢

After inventing anti-virus software, he chose to be a top-notch gangster

Visual analysis and display effect of summer data

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

Motianlun "high availability architecture" dry goods document sharing (including 124 Oracle, MySQL and PG materials)

leetcode:724. Find the central subscript of the array

Star ring technology data security management platform defender heavy release

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

尚硅谷实时数据仓库项目(阿里云实时数仓)

Summer Challenge harmonyos ark development framework arkui streamer button effect

Golang operation NSQ distributed message queue
随机推荐
尚硅谷实时数据仓库项目(阿里云实时数仓)
Automatic reply of wechat bulletin number intelligent reply with Turing robot
Star ring technology data security management platform defender heavy release
Divide the bonus pool of 10million + million yuan, and empower developers in the 2022 shengteng AI innovation competition
Db查询数据库合并两个不相关的表,新增不存在的字段,并赋予默认值
【ROS进阶篇】第三讲 ROS文件系统与分布式通信
Matlab output format control%d,%f,%c,%s usage
Summer Challenge harmonyos ark development framework arkui streamer button effect
Golang operation NSQ distributed message queue
verilog实现DDS波形发生器模块,可实现频率、相位可调,三种波形
[crossbeam series] 5 crossbeam util and crossbeam queue: some practical gadgets
STM32 minimum system construction (schematic diagram)
How to prepare samples for application of color coated steel sealing plates to BS 476-3?
leetcode:370. Interval addition
Golang operation etcd
MES系统究竟有何独特之处?
直播预告 | PostgreSQL 内核解读系列第一讲:PostgreSQL 系统概述
BUAA OO unit 4 HW16 unit 4 Summary and course review
C. Most Similar Words
2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry