MySQL5.7.22rpm安裝方式-創(chuàng)新互聯(lián)

在MySQL官網(wǎng)下載安裝包
[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
查看系統(tǒng)版本
[root@hashow-db-master resource]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)

在Linux系統(tǒng)中,如果要使用關(guān)系型數(shù)據(jù)庫的話,基本都是用的mysql,而且以往7以下版本的centos
系統(tǒng)都是默認的集成有mysql。然而對于現(xiàn)在最新的centos7系統(tǒng)來說,已經(jīng)不支持mysql數(shù)據(jù)庫,它默認

創(chuàng)新互聯(lián)專注于網(wǎng)站制作、網(wǎng)站設(shè)計、網(wǎng)頁設(shè)計、網(wǎng)站制作、網(wǎng)站開發(fā)。公司秉持“客戶至上,用心服務”的宗旨,從客戶的利益和觀點出發(fā),讓客戶在網(wǎng)絡(luò)營銷中找到自己的駐足之地。尊重和關(guān)懷每一位客戶,用嚴謹?shù)膽B(tài)度對待客戶,用專業(yè)的服務創(chuàng)造價值,成為客戶值得信賴的朋友,為客戶解除后顧之憂。

內(nèi)部集成了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%]


網(wǎng)頁題目:MySQL5.7.22rpm安裝方式-創(chuàng)新互聯(lián)
URL網(wǎng)址:http://www.bm7419.com/article4/iheie.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App設(shè)計、靜態(tài)網(wǎng)站動態(tài)網(wǎng)站、小程序開發(fā)品牌網(wǎng)站建設(shè)、商城網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運營