Install mysql5.7.33 under centos7.9, install using rpm package

1. Uninstall the mariadb-lib that comes with the system

[root@centos-linux ~]# rpm -qa|grep mariadb
mariadb-libs-5.5.44-2.el7.centos.x86_64
[root@centos-linux ~]# rpm -e mariadb-libs-5.5.44-
Insert picture description here
2. el7.centos.x86_64 --nodeps 2. Download the installation package mysql-*.rpm- bundle.tar on the official website (https://dev.mysql.com/downloads/mysql/), use the command tar to decompress and connect Install in the following order:
Insert picture description here

rpm -ivh mysql-community-common-5.7.33-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.33-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.33-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.33-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-5.7.33-1.el7.x86_64.rpm (可选)

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_2662385590/article/details/113000479