1 查看有没有安装过MariaDB
使用命令查看有没有安装过:
[root@localhost ~]# yum list installed | grep mariadb
mariadb-libs.x86_64 1:5.5.44-2.el7.centos @anaconda
[root@localhost ~]#
使用的系统是CentOS版本是7.2.1511,可以看到系统只是安装了用到的libs包,并没有安装MariaDB的服务端和客户端。
2 安装MariaDB
2.1 安装
使用命令安装:
[root@localhost ~]# yum install -y mariadb mariadb-server
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirrors.huaweicloud.com
* updates: mirrors.huaweicloud.com
正在解决依赖关系
--> 正在检查事务
...
完毕!
[root@localhost ~]#
使用命令查看安装的程序:
[root@localhost ~]# yum list installed | grep mariadb
mariadb.x86_64 1:5.5.60-1.el7_5 @base
mariadb-libs.x86_64 1:5.5.60-1.el7_5 @base
mariadb-server.x86_64 1:5.5.60-1.el7_5 @base
[root@