In a previous blog, I discussed how to pull, install and run MySQL 8.0 with Docker. I showed how to connect to the Docker daemon with MySQL.
Now I will show you how to connect to the same Docker instance using the MySQL Shell which is a tool to use Document Store and to create InnoDB Clusters.
Installing Docker, Starting MySQL, and Connecting using MySQL Shell
First, you grab Docker: https://docs.docker.com/install .
Then, you pull and run MySQL 8.0 (Linux) by running the following. Note that I’m not using a password which is just for testing a fleeting MySQL Docker container:
$ docker run –name mysql8 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d mysql/mysql-server
Unable to find image ‘mysql/mysql-server:latest’ locally
…
Pull complete
…
[Read more]