CentOS7.8离线安装MariaDB10.5.4

第一步:下载以下mariadb包

galera-4-26.4.4-1.rhel7.el7.centos.x86_64.rpm
jemalloc-3.6.0-1.el7.x86_64.rpm
jemalloc-devel-3.6.0-1.el7.x86_64.rpm
MariaDB-client-10.5.4-1.el7.centos.x86_64.rpm
MariaDB-common-10.5.4-1.el7.centos.x86_64.rpm
MariaDB-compat-10.5.4-1.el7.centos.x86_64.rpm
MariaDB-server-10.5.4-1.el7.centos.x86_64.rpm

下载网址: http://yum.mariadb.org/10.5/centos7-amd64/rpms/

第二步:安装环境依赖,执行以下命令

rpm -ivh jemalloc-3.6.0-1.el7.x86_64.rpm
rpm -ivh jemalloc-devel-3.6.0-1.el7.x86_64.rpm

第三步:卸载冲突的mariadb-libs,执行以下命令

搜索:rpm -qa | grep mariadb-libs
删除:rpm -ev --nodeps mariadb-libs-xxxx.xxxx.x86_64(xxxx为你自己对应的版本)
再次执行:rpm -qa | grep mariadb-libs(查看是否删除成功)

第四步:安装boost-devel环境依赖

执行命令:yum install boost-devel.x86_64

第五步:导入mariadb的key

执行命令:rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

第六步:安装galera环境

执行命令:rpm -ivh galera-4-26.4.4-1.rhel7.el7.centos.x86_64.rpm

第七步:安装libaio

执行命令:wget http://mirror.centos.org/centos-7/7.8.2003/os/x86_64/Packages/libaio-0.3.109-13.el7.x86_64.rpm

第八步:按照顺序安装mariadb核心包

rpm -ivh MariaDB-common-10.5.4-1.el7.centos.x86_64.rpm

rpm -ivh MariaDB-compat-10.5.4-1.el7.centos.x86_64.rpm

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

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

如果遇到libpcre2-8.so.0()(64bit) is needed by MariaDB-client-10.5.4-1.el7.centos.x86_64的问题,执行如下命令:

yum install pcre2

然后在继续执行第八步中的3和4中的命令

你可能感兴趣的:(linux,centos,mariadb)