sudo apt install mariadb-server
/etc/mysql/mariadb.conf.d/60-galera.cnf
bind-address = 0.0.0.0 去掉前面的 #
mysql -uroot -p
-- 登录 MariaDB 后执行
ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码';
FLUSH PRIVILEGES; -- 刷新权限使设置生效