update
This commit is contained in:
parent
689177908b
commit
801bd56d44
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "安装 MySQL"
|
title: "安装 MySQL"
|
||||||
date: 2019-10-30T13:00:28+08:00
|
date: 2019-10-30T13:00:37+08:00
|
||||||
lastmod: 2024-07-05T20:36:00+08:00
|
lastmod: 2024-07-05T20:36:00+08:00
|
||||||
tags: ["centos", "yum", "mysql"]
|
tags: ["centos", "yum", "mysql"]
|
||||||
categories: ["database"]
|
categories: ["database"]
|
||||||
@ -134,7 +134,7 @@ categories: ["database"]
|
|||||||
## 安装 MySQL8 通用二进制包
|
## 安装 MySQL8 通用二进制包
|
||||||
### 环境
|
### 环境
|
||||||
- CentOS 7.9 x86_64 最小安装
|
- CentOS 7.9 x86_64 最小安装
|
||||||
- MySQL 8.0.28 多实例
|
- MySQL 8.0.37 多实例
|
||||||
- 普通用户 mortal
|
- 普通用户 mortal
|
||||||
|
|
||||||
### 安装 mysql
|
### 安装 mysql
|
||||||
@ -148,20 +148,20 @@ categories: ["database"]
|
|||||||
```bash
|
```bash
|
||||||
cd ~
|
cd ~
|
||||||
# 这是 debug 版本,软件包很大
|
# 这是 debug 版本,软件包很大
|
||||||
curl -LO https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-8.0/mysql-8.0.28-linux-glibc2.12-x86_64.tar.xz
|
curl -LO https://downloads.mysql.com/archives/get/p/23/file/mysql-8.0.37-linux-glibc2.17-x86_64.tar.xz
|
||||||
# 这是 strip 版本,软件包轻量,推荐
|
# 这是 strip 版本,软件包轻量,推荐
|
||||||
curl -LO https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-8.0/mysql-8.0.28-linux-glibc2.17-x86_64-minimal.tar.xz
|
curl -LO https://downloads.mysql.com/archives/get/p/23/file/mysql-8.0.37-linux-glibc2.17-x86_64-minimal.tar.xz
|
||||||
```
|
```
|
||||||
|
|
||||||
- 解压
|
- 解压
|
||||||
```bash
|
```bash
|
||||||
cd ~
|
cd ~
|
||||||
# debug 版本
|
# debug 版本
|
||||||
tar xf mysql-8.0.28-linux-glibc2.12-x86_64.tar.xz
|
tar xf mysql-8.0.37-linux-glibc2.12-x86_64.tar.xz
|
||||||
mv mysql-8.0.28-linux-glibc2.12-x86_64 mysql
|
mv mysql-8.0.37-linux-glibc2.12-x86_64 mysql
|
||||||
# strip 版本
|
# strip 版本
|
||||||
tar xf mysql-8.0.28-linux-glibc2.17-x86_64-minimal.tar.xz
|
tar xf mysql-8.0.37-linux-glibc2.17-x86_64-minimal.tar.xz
|
||||||
mv mysql-8.0.28-linux-glibc2.17-x86_64-minimal mysql
|
mv mysql-8.0.37-linux-glibc2.17-x86_64-minimal mysql
|
||||||
```
|
```
|
||||||
|
|
||||||
- 创建三个实例的目录
|
- 创建三个实例的目录
|
||||||
|
Loading…
x
Reference in New Issue
Block a user