Last active
September 16, 2018 23:17
-
-
Save eneas/76c37d608ccf786c41b9ba0cc0eef8a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env bash | |
| #Change supersecretpassword to one secure. | |
| function learmysql_intit(){ | |
| docker run --name mysql -e MYSQL_ROOT_PASSWORD="supersecretpassword" -d mysql | |
| docker run --name myadmin -d --link mysql:db -p 8080:80 phpmyadmin/phpmyadmin | |
| } | |
| function learnmysql_stop(){ | |
| docker stop mysql myadmin | |
| } | |
| function learnmysql_start(){ | |
| docker start mysql myadmin | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment