1. yum search mariadb 找包的名字 2. yum install mariadb mariadb-sever 安装包 服务端 3. systemctl enable mariadb 设置自启动 4 .systemctl start mariadb 启动服务 5.systemctl status mariadb 查看服务情况 6. MysqL——secure——installation 初始化