1,yum安装MariaDB

yum -y install mariadb-server mariadb-client mariadb

update user set authentication_string=password('password') where user='root';  #配置登录密码