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.
You can use these commands to allow port 3306 through UFW
And to check that the rules have been added
Create the file
/etc/ufw/applications.d/mysql-server
and include the following content.Run command:
sudo ufw allow MySQL
You should be good to go. Feel free to give it a better title and description. I just tossed something in quick like.