- install docker
- sudo apt-get install -y docker.io
- download mysql
- sudo docker pull mysql
- start mysql
- sudo docker run -p 3306:3306 --name mysql -v $PWD/conf:/etc/mysql/conf -v $PWD/logs:/logs -v $PWD/data:/mysql_data -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql
- run sql
- docker exec -d mysql mysql -uroot -pmy-secret-pw -e "create database if not exists test