脚本以及文档修改

This commit is contained in:
2022-04-14 13:48:26 +08:00
parent f2aa29deeb
commit 768a1ad5b5
2 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ NC='\033[0m'
DOWNLOAD_DIR="/usr/src"
# MySQL 安装源的位置
SOURCE_DIR="http://repo.mysql.com/mysql80-community-release-el7-5.noarch.rpm"
SOURCE_DIR="http://repo.mysql.com/mysql80-community-release-el8-3.noarch.rpm"
echo "===================================================="
printf "${GREENCOLOR} MySQL's install begin ${NC} \n"
@@ -33,7 +33,7 @@ cd $DOWNLOAD_DIR
# 下载 MySQL 包
wget $SOURCE_DIR
# 安装 MySQL 的 yum 源
rpm -ivh mysql80-community-release-el7-5.noarch.rpm
rpm -ivh mysql80-community-release-el8-3.noarch.rpm
# 安装 MySQL
yum -y install mysql-community-server
# 启动 MySQL

View File

@@ -5,7 +5,7 @@ GREENCOLOR='\033[1;32m'
NC='\033[0m'
DOWNLOAD_DIR="/usr/src"
SOURCE_DIR="http://repo.mysql.com/mysql80-community-release-el7-5.noarch.rpm"
SOURCE_DIR="http://repo.mysql.com/mysql80-community-release-el8-3.noarch.rpm"
echo "===================================================="
printf "${GREENCOLOR} MySQL's install begin ${NC} \n"
@@ -19,7 +19,7 @@ cd $DOWNLOAD_DIR
# 下载 MySQL 包
wget $SOURCE_DIR
# 安装 MySQL 的 yum 源
rpm -ivh mysql80-community-release-el7-5.noarch.rpm
rpm -ivh mysql80-community-release-el8-3.noarch.rpm
# 安装 MySQL
yum -y install mysql-community-server
# 启动 MySQL