Skip to content

🐳A Docker Image for learning MySQL Crash Course. Includes essential databases.

License

Notifications You must be signed in to change notification settings

lianghx-319/mysql-crash-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to mysql-crash-course 👋

Version License: MIT

🐳A Docker Image for learning MySQL Crash Course. Includes essential databases.

image.png

Introduction

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.

Install

git clone https://github.com/lianghx-319/mysql-crash-course.git -b master --depth=1

Usage

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

Author

👤 Han

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Han.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

🐳A Docker Image for learning MySQL Crash Course. Includes essential databases.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published