自定义安装Mysql版本
mysql下载地址:https://downloads.mysql.com/archives/community/
1. 下载
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar
--2024-08-20 10:15:39-- https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar
正在解析主机 downloads.mysql.com (downloads.mysql.com)... 23.77.12.86, 2600:140e:6:9bc::2e31, 2600:140e:6:9a3::2e31
正在连接 downloads.mysql.com (downloads.mysql.com)|23.77.12.86|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Moved Temporarily
位置:https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar [跟随至新的 URL]
--2024-08-20 10:15:39-- https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar
正在解析主机 cdn.mysql.com (cdn.mysql.com)... 104.111.200.167, 2600:140e:6:9a4::1d68, 2600:140e:6:990::1d68
正在连接 cdn.mysql.com (cdn.mysql.com)|104.111.200.167|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:609556480 (581M) [application/x-tar]
正在保存至: “mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar”100%[======================================================================================================================================================================>] 609,556,480 102MB/s 用时 8.1s
2024-08-20 10:15:47 (71.5 MB/s) - 已保存 “mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar” [609556480/609556480])
2. 解压
tar -xf mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar
mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar mysql-community-devel-5.7.28-1.el7.x86_64.rpm mysql-community-embedded-devel-5.7.28-1.el7.x86_64.rpm mysql-community-server-5.7.28-1.el7.x86_64.rpm
mysql-community-client-5.7.28-1.el7.x86_64.rpm mysql-community-embedded-5.7.28-1.el7.x86_64.rpm mysql-community-libs-5.7.28-1.el7.x86_64.rpm mysql-community-test-5.7.28-1.el7.x86_64.rpm
mysql-community-common-5.7.28-1.el7.x86_64.rpm mysql-community-embedded-compat-5.7.28-1.el7.x86_64.rpm mysql-community-libs-compat-5.7.28-1.el7.x86_64.rpm
3. 安装(注意安装先后顺序,安装包有依赖)
rpm -ivh mysql-community-common-5.7.28-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:mysql-community-common-5.7.28-1.e################################# [100%]
rpm -ivh mysql-community-libs-5.7.28-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:mysql-community-libs-5.7.28-1.el7################################# [100%]
rpm -ivh mysql-community-libs-compat-5.7.28-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:mysql-community-libs-compat-5.7.2################################# [100%]
rpm -ivh mysql-community-client-5.7.28-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:mysql-community-client-5.7.28-1.e################################# [100%]
rpm -ivh mysql-community-server-5.7.28-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:mysql-community-server-5.7.28-1.e################################# [100%]
rpm -ivh mysql-community-devel-5.7.28-1.el7.x86_64.rpm
准备中... ################################# [100%]
正在升级/安装...
1:mysql-community-devel-5.7.28-1.el################################# [100%]
启动
systemctl start mysqld
标签:自定义,5.7,Mysql,28,64,版本,mysql,rpm,el7 From: https://www.cnblogs.com/taozhengquan/p/18375620● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: inactive (running)
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html