在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%]
网页题目:MySQL5.7.22rpm安装方式-创新互联
URL网址:https://www.cdcxhl.com/article4/iheie.html
成都网站建设公司_创新互联,为您提供App设计、静态网站、动态网站、小程序开发、品牌网站建设、商城网站
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联