How to open port 3306 for Mysql or MariaDB using UFW firewall on ubuntu linux

While working with linux os, We need to open some kinds of port like for Mysql/MariaDB database server, Use the following command for the same.

In this post, We will open the port 3306 on UFW firewall on ubuntu linux.

Step 1: Allow the Port 3306

You need to execute the given command to allow port 80 using UFW utility.

sudo ufw allow 3306

Step 2: Get UFW firewall Status

Now we need to check and verify the open port by using the given command.

sudo ufw status

Conclusion

We have successfully execute the mysql quiiey in bash shell script, Kindly report in case you are facing defeculties with follwing details.

  • OS name
  • OS version
  • Package name
  • Logs – Error / Warning / failed

Get in touch with our new devops tools based website- https://www.devopstricks.in/

How to open port 3306 for Mysql or MariaDB using UFW firewall on ubuntu linux

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top