You can up and run MySQL Docker container in your local machine and later connect from mysql CLI to query your database.
Run the following command in your terminal to up and run a MySQL Database Docker container.
docker run -p 3306:3306 --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest
Follow the following link for more details
There are more practice in this video 🙂