当前位置:网站首页>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
边栏推荐
- Wechat bulletin number Turing robot realizes intelligent reply
- Rsync method of establishing multi directory module
- My creation anniversary
- ASP利用Panel实现简易注册页面
- leetcode:724. Find the central subscript of the array
- 报表交付工程师
- R language plot visualization: plot visualization box graph and several box plots of multiple classification variables
- C. Most Similar Words
- Don't worry about form deformation anymore
猜你喜欢

美国隧道法ASTM E84 表面阻燃测试

STM32 minimum system construction (schematic diagram)

PostgreSQL weekly news - June 22

Autodesk Revit 2023 software installation package download and installation tutorial

What is a SYN Flood attack? How to protect?

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

Reading notes on how to connect the network - LAN on the server side (4)

Viewing technological changes through Huawei Corps (V): smart Park

知识蒸馏(Knowledge Distilling)学习笔记

铝板AS/NZS 1530.1 不燃性材料的阻燃测试
随机推荐
Knowledge distilling learning notes
Houdini graphic notes: VAT (3.0) import ue4/5 setup wizard [official document translation]
Rsync method of establishing multi directory module
尚硅谷实时数据仓库项目(阿里云实时数仓)
阿里巴巴商品详情API接口(item_get-获得商品详情接口),阿里巴巴API接口
Reading notes on how to connect the network - LAN on the server side (4)
Detailed explanation of key points in implementing MES system in Enterprises
Go standard library context package: data, cancellation signal, deadline and other related operations between a single request and multiple goroutines and the request domain
Top ten questions for senior Performance Test Engineer
彩涂钢板密封板申请BS 476-3如何备样?
How to make good use of data science?
MES系统与ERP如何集成?本文告诉你答案
企业实施MES系统的关键点详解
LeetCode 1. Sum of two numbers
R language plot visualization: plot visualization box graph and several box plots of multiple classification variables
My creation anniversary
Bs-gx-018 student examination system based on SSM
MES系统究竟有何独特之处?
[advanced ROS] Lecture 3 ROS file system and distributed communication
CLI tool foundation of ros2 robot f1tenth