- Docker
- GNU make
- mac:
brew install make
- centos:
sudo yum install make
- ubuntu:
sudo apt install make
- mac:
- Clone this repo
git clone https://github.com/fenggeorgeyu/mysql-docker-deploy.git
cd mysql-docker-deploy
- To create the containers of mysql and phpmyadmin run
make create
-
To access phpymyadmin type in your web browser:
http://localhost:8080
. By default, the root password isysu123
. You may change the password by change thepasswd
in the makefile. -
To access the SQL of MySQL
make sql
- To access the bash of container
make bash
- To stop containers
make stop
- To start or resume containers
make start
- To delete containers (need to stop containers first):
make delete