日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

rpm的mysql安装_MySQL 5.7.22 rpm 安装方式

發布時間:2025/3/15 数据库 15 豆豆
生活随笔 收集整理的這篇文章主要介紹了 rpm的mysql安装_MySQL 5.7.22 rpm 安装方式 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在MySQL官網下載安裝包

[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-libsis 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 -ivhmysql-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 -ivhmysql-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 -ivhmysql-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 -ivhmysql-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%]

總結

以上是生活随笔為你收集整理的rpm的mysql安装_MySQL 5.7.22 rpm 安装方式的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。