|
|
|
@ -30,9 +30,7 @@ rm -rvf /etc/my.cnf /var/lib/mysql /var/log/mysql* |
|
|
|
|
userdel -rf mysql &>/dev/null |
|
|
|
|
ping -c1 -w1 www.baidu.com &>/dev/null |
|
|
|
|
if [[ $? -eq 0 ]];then |
|
|
|
|
if [ ! -f /tmp/.init ];then |
|
|
|
|
yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm |
|
|
|
|
fi |
|
|
|
|
yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm |
|
|
|
|
else |
|
|
|
|
color Error "网络错误" |
|
|
|
|
exit 22 |
|
|
|
|