LNMP-mariadb安装
1、安装Mariadb
yum install mariadb mariadb-server -y
2、启动Mariadb数据库且加入开机自动
systemctl start mariadb
systemctl enable mariadb
3、Mariadb配置登陆密码且设置新密码进行登录数据库
mysqladmin password 'cyc.com' mysql -u root -pcyc.com
yum install mariadb mariadb-server -y
systemctl start mariadb
systemctl enable mariadb
mysqladmin password 'cyc.com' mysql -u root -pcyc.com