国产一在线精品一区在线观看,2022年国产精品久久久久,a级黄色毛片视频,99视频免费看,99视频在线免费看,亚洲五月婷,99久热只有精品视频免费观看17

首頁(yè) 服務(wù) 產(chǎn)品 文檔 關(guān)于

centos 華為OpenEuler 用c#連接MySQL出現錯誤 Unable to connect to any of the specified MySQL hosts.

centos 華為OpenEuler 用c#連接MySQL出現錯誤 Unable to connect to any of the specified MySQL hosts.

檢查連接字符串沒(méi)問(wèn)題

防火墻也沒(méi)開(kāi),

主要是因為iptables相關(guān)端口沒(méi)開(kāi)導致的

開(kāi)放TCP3306端口***************************
1、開(kāi)啟iptables端口

開(kāi)啟1521端口:

iptables -A INPUT -p tcp --dport 3306 -j ACCEPT

iptables -A OUTPUT -p tcp --dport 3306 -j ACCEPT

2、保存iptables設置,重啟iptables

在更改完設置后要先保存設置:

service iptables save

然后再重啟iptables才能使設置生效:

service iptables restart

3、看端口

輸入命令查看已開(kāi)端口:

iptables -L -n