Bootstrap

Ubuntu 安装和配置 MariaDB

mariadb

apt update
apt install mariadb-server mariadb-client -y
systemctl start mariadb
systemctl status mariadb
systemctl enable mariadb

设置 root 密码

mysql_secure_installation
  • 使用新密码登陆
mysql -u root -p

参考

  1. MySQL----mysql_secure_installation 安全配置向导
;