Docker Usage
Run a MySQL Container
docker run --name={name} -p {host port}:3306 -e MYSQL_ROOT_PASSWORD={mysql root password} -e MYSQL_ROOT_HOST=localhost -d mysql/mysql-server:{mysql version} --config-entry-key=value
- Check container logs
docker logs {name}
- Restore from dump files
cat {dump file} | docker exec -i {name} mysql -u{user} -p{pass} {database}
- Enter MySQL console
docker exec -it {name} mysql -u{user} -p{pass}