99热九九这里只有精品10,99国内精品久久久久久久软件,久久久亚洲最大ⅹxxx,99久久99久久精品免费,亚洲午夜电影在线观看,四虎少妇做爰免费视频网站四,亚洲第一在线播放

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

centos 華為OpenEuler 用c#連接MySQL出現(xiàn)錯(cuò)誤 Unable to connect to any of the specified MySQL hosts.

centos 華為OpenEuler 用c#連接MySQL出現(xiàn)錯(cuò)誤 Unable to connect to any of the specified MySQL hosts.

檢查連接字符串沒問題

防火墻也沒開,

主要是因?yàn)?span>iptables相關(guān)端口沒開導(dǎo)致的

開放TCP3306端口***************************
1、開啟iptables端口

開啟1521端口:

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

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

2、保存iptables設(shè)置,重啟iptables

在更改完設(shè)置后要先保存設(shè)置:

service iptables save

然后再重啟iptables才能使設(shè)置生效:

service iptables restart

3、看端口

輸入命令查看已開端口:

iptables -L -n