雲主機開放埠筆記 mysql遠端連線需要的步驟

2021-10-03 03:41:20 字數 500 閱讀 7953

這裡以阿里雲為例,阿里雲還是安全啊,一共有3個步驟:

第一:防火牆開放3306

第二:linux伺服器開放3306埠

firewall-cmd --zone=public --add-port=3306/tcp --permanent

firewall-cmd --reload

第三:mysql開放使用者許可權

update user set host = 』%』 where user = "username";

grant all privileges on *.* to username@'%' identified by "password";

flush privileges;

如果用管理面板就簡單多了:

centos開放埠宿主機訪問

tomcat開放埠號方法 firewall cmd add port 8080 tcp permanent 其中 permanent 指的是永久開放。firewall cmd reload 最後記得reload以下,出現success就是設定成功。我在執行命令時,出現firewalld is not...

linux掃瞄目標主機開放埠

常用埠掃瞄工具 1 網路分析工具satan 2 網路安全掃瞄器nss 3 strobe 4 internet scanner 5 port scanner 6 nmap 1 超牛x的多執行緒埠掃瞄指令碼 python3 注意 centos ubuntu git clone cd portscan 1...

阿里雲 開放mysql遠端連線 3306埠

為了開發,需要伺服器端mysql能被遠端訪問到,不管是被本地訪問還是被另一台伺服器 首先登入伺服器端mysql 簡單點的就用phpmyadmin 建立新使用者和密碼 給與其能遠端登入的許可權 grant all privileges on to username identified by pass...