mysql开放远程端口

时间:2021-09-08 14:43:34

mysql开放远程端口

[html]  view plain  copy
  1. [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --zone=public --add-port=3306/tcp --permanent  
  2. success  
  3. [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --reload  
  4. success  
  5. [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --state  
  6. running  
  7. [root@iZ2zeczh9tfpmxmijw5qppZ ~]#  
  8. [root@iZ2zeczh9tfpmxmijw5qppZ ~]# firewall-cmd --zone=public --query-port=3306/tcp  
  9. yes  
  10. [root@iZ2zeczh9tfpmxmijw5qppZ ~]#