Install MySQL server with Docker Compose
Inside a new directory, create a data directory and docker-compose.yml with these rows: To start the container, run docker-compose up -d. To stop & remove the container, run docker-compose down. To connect from a MySql client use this: