Thursday, September 21, 2023
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 31542  / 1 Year ago, thu, april 14, 2022, 2:34:22

I'm very new to Ubuntu. I couldn't able to connect to mysql via my programming language.



I know all my property file in my code is correct. But still I couldn't able to connect to mysql. I guess my firewall is blocking me out.



I have ufw firewall installed, how do I enable 3306 port in that?



I tried these steps but doesn't get the solution.



Thanks in advance.


More From » mysql

 Answers
6

You can use these commands to allow port 3306 through UFW



 sudo ufw allow out 3306/tcp  

sudo ufw allow in 3306/tcp


And to check that the rules have been added



 sudo ufw status

[#36229] Thursday, April 14, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urnaetted

Total Points: 10
Total Questions: 113
Total Answers: 117

Location: Burundi
Member since Sat, Aug 21, 2021
2 Years ago
;