- yum源配置,MariaDB官网链接
# MariaDB 10.2 CentOS repository list - created 2018-02-02 16:03 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2/centos7-ppc64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
- yum安装
yum install MariaDB-server MariaDB-client
- 服务启动
#启动mariadb服务 systemctl start mariadb #开启mariadb服务自启 systemctl enable mariadb
- 初始化数据库
mysql_secure_installation