docker部署mysql client
docker pull mysql:8.0.31
cat >> ~/.bashrc <<'EOF'
## --rm 表示容器退出及销毁
alias mysql-cli="docker run -it --rm mysql:8.0.31 mysql"
EOF
source ~/.bashrc
mysql-cli -h123.123.123.123 -P23306 -uxxxxxxxx -pxxxxxxxxxxx -A xxxxxxxxxx -e "
show create table xxxxxxxxxxxxxxxxxxxxx
"
标签:部署,指定,client,版本,mysql,docker
From: https://www.cnblogs.com/chenzechao/p/17511726.html