安装
yum install mariadb-server mariadb -y
启动
systemctl start mariadb.service
systemctl enable mariadb.service
初始化
mysql_secure_installation #一路回车
登录数据库
mysql -uroot -p123
create database wordpress1;
创建用户并授予用户权限
grant all on wordpress1.* to wordpress@'localhost' identified by '123456';
grant all on wordpress1(数据库).*(表) to wordpress(用户)@'localhost(允许从哪登录)' identified by '123456';