mysql8.0.22脚本实现自动安装
[root@localhost Dockerfile]# cat setup.sh#!/bin/bash#if [ $# -ne 2 ] ;then# exit#fiexport PATH=$PATH:/home/db/mysql/bin:/home/db/mysql/lib# MASTER=falseSLAVE=$1#slave_ip=$2source /etc/profileInit_env(){# pathmkdir -p /home/db/mysql /hom..