MariaDB 安裝完後可調用 mysql_secure_installation 命令進行一連串的安全性設定。

mysql_secure_installation

MariaDB - Secure MariaDB server with mysql_secure_installation command

像是 root 的密碼。

MariaDB - Secure MariaDB server with mysql_secure_installation command

是否移除匿名使用者?

MariaDB - Secure MariaDB server with mysql_secure_installation command

是否允許 root 帳號遠端登入?

MariaDB - Secure MariaDB server with mysql_secure_installation command

移除測試用資料庫?

MariaDB - Secure MariaDB server with mysql_secure_installation command

是否重新載入設定?

MariaDB - Secure MariaDB server with mysql_secure_installation command

照著設定完 MariaDB 就會有基本的安全性在。