sudo ufw deny 3306

Category: Self-Hosting

sudo ufw deny 3306

Block MySQL's default port from external access — keep databases off the public internet

Blocks MySQL's port from the internet. Databases should never be publicly accessible — apps connect to them locally or over a private network.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.