Get the App
SLTechnology News&Howtos  ›  Database  › 

MySQL 5.7.22 rpm installation method

Shulou Source: shulou.com Published: 2022-06-01 05:57:16 10月06日 Update

Download the installation package on the MySQL official website

[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

View system version

[root@hashow-db-master resource] # cat / etc/redhat-release

Red Hat Enterprise Linux Server release 7.3 (Maipo)

In the Linux system, if you want to use a relational database, you basically use mysql, and the previous versions of centos below 7

The system is integrated with mysql by default. However, for the latest centos7 system, mysql database is no longer supported, it defaults to

Maridb is integrated internally. If we want to use mysql, we must uninstall the original maridb first, otherwise it will cause conflicts.

Command: 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

Uninstall prompts for dependent packages, force uninstall

[root@hashow-db-master resource] # rpm-e-- nodeps mariadb-libs-5.5.52-1.el7.x86_64

To start installing MySQL5.7.22, install it in the order of the rpm package:

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

Tags: System data database version command order first conflict force prompt support mode Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Redmi Docker Microsoft OPPO Reno