Ubuntu上MySQL安全设置主要包括以下方面:
sudo mysql_secure_installation
/etc/mysql/mysql.conf.d/mysqld.cnf
bind-address
127.0.0.1
ufw