成都创新互联网站制作重庆分公司

MySQL5.7.22rpm安装方式

在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-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 -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%]



网页题目:MySQL5.7.22rpm安装方式
网站地址:http://cxhlcq.com/article/gjgidj.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部