-
-
Save haikusw/838f61a638fd792a484e51534f9153a1 to your computer and use it in GitHub Desktop.
Docker MySQL
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
docker run -d \ | |
--restart=always \ | |
-p 33060:3306 \ | |
-e MYSQL_ROOT_PASSWORD=root \ | |
-v ~/docker/volumes/mysql:/var/lib/mysql \ | |
--name mysql-5.7 \ | |
mysql:5.7 \ | |
--sql-mode="NO_ENGINE_SUBSTITUTION" |
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
docker run -d \ | |
--restart=always \ | |
-p 33061:3306 \ | |
-e MYSQL_ROOT_PASSWORD=root \ | |
--tmpfs /var/lib/mysql:rw,noexec,nosuid,size=1024m \ | |
--name mysql-5.7-ram \ | |
mysql:5.7 \ | |
--sql-mode="NO_ENGINE_SUBSTITUTION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment