groupadd mysql
useradd -g mysql mysql
wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.15-el7-x86_64.tar
tar -xvf mysql-8.0.15-el7-x86_64.tar
tar -zxvf mysql-8.0.15-el7-x86_64.tar.gz
yum install lrzsz make cmake g++ git vim gcc libncurses5-dev bison
mv mysql-8.0.15-el7-x86_64 /usr/local/servers/mysql
cd /usr/local/servers/mysql/bin
./mysqld --initialize --user=mysql --console
## 此時會提示有一個臨時root密碼
./mysqld_safe --user=mysql &
#啟動后進去改root密碼