MySQL 5.7.22 rpm 安裝方式
[root@hashow-db-master resource]# tar -xvf mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
[root@hashow-db-master resource]# ls
DATALOSS_WARNING_README.txt mysql-community-common-5.7.22-1.el7.x86_64.rpm mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
lost+found mysql-community-devel-5.7.22-1.el7.x86_64.rpm mysql-community-minimal-debuginfo-5.7.22-1.el7.x86_64.rpm
lrzsz-0.12.20 mysql-community-embedded-5.7.22-1.el7.x86_64.rpm mysql-community-server-5.7.22-1.el7.x86_64.rpm
lrzsz-0.12.20.tar.gz mysql-community-embedded-compat-5.7.22-1.el7.x86_64.rpm mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm
mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar mysql-community-embedded-devel-5.7.22-1.el7.x86_64.rpm mysql-community-test-5.7.22-1.el7.x86_64.rpm
mysql-community-client-5.7.22-1.el7.x86_64.rpm mysql-community-libs-5.7.22-1.el7.x86_64.rpm swapfile
[root@hashow-db-master resource]# rpm -ivh mysql-community-libs-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-libs-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.22-1.el7.x86_64
mariadb-libs is obsoleted by mysql-community-libs-5.7.22-1.el7.x86_64
檢視系統版本
[root@hashow-db-master resource]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
在Linux系統中,如果要使用關係型資料庫的話,基本都是用的mysql,而且以往7以下版本的centos
系統都是預設的整合有mysql。然而對於現在最新的centos7系統來說,已經不支援mysql資料庫,它預設
內部整合了maridb,如果我們想要使用 mysql 的話,就要先將原來的maridb解除安裝掉,不然會引起衝突
命令:rpm -qa |grep maridb
[root@hashow-db-master resource]# rpm -e mariadb-libs-5.5.52-1.el7.x86_64
error: Failed dependencies:
libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64
libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-6.el7.x86_64
解除安裝提示有依賴的包,強制解除安裝
[root@hashow-db-master resource]# rpm -e --nodeps mariadb-libs-5.5.52-1.el7.x86_64
開始安裝MySQL5.7.22,要按rpm包順序安裝:
[root@hashow-db-master resource]# rpm -ivh mysql-community-common-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-common-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-common-5.7.22-1.e################################# [100%]
[root@hashow-db-master resource]# rpm -ivh mysql-community-libs-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-libs-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-libs-5.7.22-1.el7################################# [100%]
[root@hashow-db-master resource]# rpm -ivh mysql-community-client-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-client-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-client-5.7.22-1.e################################# [100%]
[root@hashow-db-master resource]# rpm -ivh mysql-community-server-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-server-5.7.22-1.e################################# [100%]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-2154416/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql安裝(rpm)MySql
- CentOS安裝MySQL的兩種方式——RPM和YUMCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- mysql5.7.22解壓版安裝教程MySql
- clickhouse-backup(RPM方式安裝)
- rpm方式離線安裝ansible
- rpm方式安裝redis4.0Redis
- MYSQL5.7.22 原始碼安裝 主從搭建MySql原始碼
- Mysql for Linux安裝配置之—— rpm(bundle)安裝MySqlLinux
- CentOS下使用rpm包安裝MySQLCentOSMySql
- centos以RPM包方式安裝redis的方法CentOSRedis
- CentOS8 安裝 MySQL8.0(RPM)CentOSMySql
- mysql8.0.30的RPM包安裝方法MySql
- MYSQL5.7.22 原始碼安裝 主從搭建 + KEEPALIVED高可用MySql原始碼
- CentOS7離線安裝(rpm安裝)mysql資料庫CentOSMySql資料庫
- Linux rpm -e --nodeps rpm解除安裝Linux
- Linux系統下安裝配置JDK(rpm方式及tar.gz方式)LinuxJDK
- yum如何解除安裝已安裝的rpm並安裝本地rpm包
- Mysql 5.7在OL 6上以RPM包安裝MySql
- 鯤鵬920,KylinOSV 10,RPM安裝mysql8.0.24MySql
- 基於Linux的MySQL5.7RPM包安裝LinuxMySql
- 19c(19.3) RPM方式單機資料庫安裝資料庫
- Mysql 5.7.22 install for windowsMySqlWindows
- PostgreSQL 10.12 安裝系列 - 本地RPM安裝SQL
- MySQL所有的安裝部署方式MySql
- rpm包安裝升級與解除安裝
- PostgreSQL 10.12 安裝系列 - Yum+rpm 安裝SQL
- CentOS 下 MySQL 5.6 基於 RPM 的下載、安裝、配置CentOSMySql
- Centos7離線rpm安裝MySQL-5.7.29【推薦】CentOSMySql
- Centos中徹底刪除Mysql(rpm、yum安裝的情況)CentOSMySql
- Oracle 19c RPM安裝Oracle
- Linux命令之rpm安裝命令Linux
- RPM包安裝與介紹
- CentOS7 安裝 Mysql 8:0 的yum安裝方式CentOSMySql
- Linux下Centos7以rpm方式離線安裝MySQL5.7教程以及部分報錯解決方案LinuxCentOSMySql
- centos(linux): rpm -V 驗證rpm包安裝程式的安全CentOSLinux
- 透過yum在centos6.6上安裝mysql5.7.21rpm包CentOSMySql