天道酬勤,学无止境

mysql编译安装

mysql的编译安装脚本

#!/usr/bin/env bash #mysql 编译安装 by blackmedbyhe(){ rpm -qa | grep mariadb if [ $? -eq 0 ];then rpm -e --nodeps >/dev/null fi rm -rf /etc/my* >/dev/null rm -rf /var/lib/mysql >/dev/null userdel -r mysql >/dev/null rpm -qa | grep cmake if [ $? -ne 0 ];then yum -y install cmake ncurses ncurses-devel openssl-devel bison gcc gcc-c++ make >/dev/null echo "========================================" echo "The success of the prophase environment." echo "========================================" fi useradd -r mysql -M -s /sbin/nologin mkdir /mysql wget -O /mysql/mysql-5.7.20.tar.gz https://dev.mysql.com

2021-06-02 01:03:56    分类:博客    mysql   mysql编译安装   mysql编译的脚本