Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 462 Bytes

ReadMe_static.md

File metadata and controls

19 lines (14 loc) · 462 Bytes

ReadMe_static

Mac

hub.docker.com » starting mysql locally

Start the MySQL database locally with the following command:

# Start the MySQL database locally
docker run --rm -it --name mysql8 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -d mysql:8
# Execute a bash shell in the container
docker exec -it mysql8 bash
# Connect to the MySQL database in the container
mysql -hlocalhost -uroot -psecret