🐳A Docker Image for learning MySQL Crash Course. Includes essential databases.
Here is a docker image for who are reading the book 「MySQL Crash Course」. Supply a simple way to setup MySQL and create essential databases.
git clone https://github.com/lianghx-319/mysql-crash-course.git -b master --depth=1
First of all, install docker-ce and docker-compose
Then run init.sh
This script will create a directory name db_data
that databases volume mounted under the project for persistent data. And create two secret file in case of exposing your password.
# run init.sh
./init.sh
# write db root password
echo 'yourpassword' > db_root_password.txt
# write db user password
echo 'yourpassword' > db_password.txt
# build a docker container
docker-compose up -d
Now you can use DB admin tool or command line to access db with
HOST IP
or localhost
PORT 3326
USER crashcourse
or root
PASSWORD yourpassword
👤 Han
- Website: coming soon
- Github: @liang-319
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2020 Han.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator