[摘要]cut -d " " -f 1 `mysql_md5_true="aaa21c6450adee3a1894fd1710f02bf5"if [ "$m...
cut -d " " -f 1 `
mysql_md5_true="aaa21c6450adee3a1894fd1710f02bf5"
if [ "$mysql_md5" = "$mysql_md5_true" ] ;then
tar -zxvf mysql-5.6.29.tar.gz
else
rm -rf mysql-5.6.29.tar.gz
rm -rf mysql-5.6.29
fi
else
is_exist wget
wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.29.tar.gz
tar -zxvf mysql-5.6.29.tar.gz
fi
#see the yum source is use
yum cleanup
yum makecache
#install the depend package
yum -y install gcc make cmake ncurses-devel libxml2-devel libtool-ltdl-devel gcc-c++ autoconf automake bison zlib-devel
#add mysql group and user
is_user_mysql=`cat /etc/passwd
关键词:Centos7安装 mysql5.6.29 shell脚本的示例代码分享