Last active
December 14, 2017 07:16
-
-
Save Rudis1261/43adf46b6b6d917947b8bbba8af3150c to your computer and use it in GitHub Desktop.
Creating a docker MySQL instance
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
mkdir -p /data/mysql | |
echo "CREATING CONTAINER MySQL (Mariabd)" | |
docker run \ | |
-d \ | |
-e MYSQL_ROOT_PASSWORD=root \ | |
-e MYSQL_ROOT_HOST=% \ | |
-v /data/mysql:/var/lib/mysql \ | |
-p 3306:3306 \ | |
-i \ | |
--name mysql \ | |
mariadb |
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
mkdir -p /data/mysql | |
echo "CREATING CONTAINER MySQL (MySQ:)" | |
docker run \ | |
-d \ | |
-e MYSQL_ROOT_PASSWORD=root \ | |
-e MYSQL_ROOT_HOST=% \ | |
-v /data/mysql:/var/lib/mysql \ | |
-p 3306:3306 \ | |
-i \ | |
--name mysql \ | |
mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment