Centos7离线安装 Mariadb

src=http___img2018.cnblogs.com_i-beta_1763933_201912_1763933-20191202152225739-422266170.png&refer=http___img2018.cnblogs

1.下载离线包

(1)直接下载
Mariadb离线包.zip
(2)Linux上下载

wget https://halopan.sntumc.cn/4407774ed5bdc196c27211751238e273.zip

2.首先查看是否有lib依赖 如果有 删除

rpm -qa | grep mariadb-libs

[rootaloca lhost mariadb]#

我这边有 所以要删除

//删除命令 注意后面改成你显示的包名
 rpm -ev --nodeps   mariadb-libs-5.5.44-2.el7.centos.x86_64

3.解压(如果已经解压可以跳过)

安装解压软件

yum -y install zip unzip

解压压缩包

//解压到mariadb文件夹
unzip 4407774ed5bdc196c27211751238e273.zip -d mariadb
//进入mariadb文件夹
cd mariadb

4.开始安装组件包(注意comm和comp必须同时安装 )

rpm -ivh MariaDB-common-10.6.3-1.el7.centos.x86_64.rpm MariaDB-compat-10.6.3-1.el7.centos.x86_64.rpm 

5.安装依赖包(注意顺序不然安装不上

rpm -ivh openssl-libs-1.0.2k-19.el7.x86_64.rpm   --force
rpm -ivh pcre2-10.23-2.el7.x86_64.rpm
rpm -ivh libpmem-1.5.1-2.1.el7.x86_64.rpm 
rpm -ivh libsepol-2.5-10.el7.x86_64.rpm    --force

rpm -ivh perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm 
rpm -ivh perl-Net-Daemon-0.48-5.el7.noarch.rpm 
rpm -ivh perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm 
rpm -ivh perl-IO-Compress-2.061-2.el7.noarch.rpm
rpm -ivh perl-PlRPC-0.2020-14.el7.noarch.rpm
rpm -ivh perl-DBI-1.627-4.el7.x86_64.rpm

rpm -ivh  boost-program-options-1.53.0-27.el7.x86_64.rpm 
rpm -ivh galera-4-26.4.3-1.rhel7.el7.centos.x86_64.rpm 

G.r aa oooneco. ot Boebe. wau

4.安装客户端

rpm -ivh MariaDB-client-10.6.3-1.el7.centos.x86_64.rpm

5.安装服务端

rpm -ivh MariaDB-server-10.6.3-1.el7.centos.x86_64.rpm