一、安装
[root@centos7-192.168.1.40 opt]# yum install mariadb-server
[root@centos7-192.168.1.40 opt]# yum install mariadb
二、启动
[root@centos7-192.168.1.40 opt]# systemctl start mariadb
三、初始化
[root@centos7-192.168.1.40 opt]# mysql_secure_installation
四、授权
[root@centos7-192.168.1.40 opt]# grant all on *.* to root@'192.168.1.%' with grant option;