Last active
November 22, 2021 17:01
-
-
Save pcgeek86/4754335d99c42cd9cb97eeaaf2a5caa4 to your computer and use it in GitHub Desktop.
Install MySQL Shell utility into MySQL official Docker container image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use these commands to install MySQL Shell utility into a container running | |
# the official MySQL distribution via Docker Hub. | |
# | |
# docker pull mysql:8.0.26 | |
# export CONTAINER_ID=$(docker run --detach --env MYSQL_ROOT_PASSWORD=12345 mysql:8.0.26) | |
# docker exec --interactive --tty $CONTAINER_ID bash | |
apt update && apt-get install httpie --yes | |
# Use the Debian or Ubuntu package | |
export FILENAME='mysql-shell_8.0.26-1debian10_amd64.deb' | |
export FILENAME='mysql-shell_8.0.26-1ubuntu20.04_amd64.deb' | |
export FILENAME='mysql-shell_8.0.27-1debian11_amd64.deb' | |
pip3 install httpie | |
http --download https://cdn.mysql.com//Downloads/MySQL-Shell/$FILENAME | |
dpkg --install $FILENAME | |
apt-get install --fix-broken --yes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment