Last active
November 12, 2019 09:44
-
-
Save ksmandersen/44fb1304277f690d1d3bc2f330c29a66 to your computer and use it in GitHub Desktop.
Set Up a MySQL docker instance
This file contains 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 /usr/local/opt/mysql/8.0 | |
chmod -R ug+w /usr/local/opt/mysql/ | |
# Add /usr/local/opt to docker file sharing | |
docker run --restart always --name mysql8.0 -v /usr/local/opt/mysql/8.0:/var/lib/mysql -p 3306:3306 -d -e MYSQL_ROOT_PASSWORD=winteriscoming mysql:8.0 | |
alias mysql8="mysql --host 0.0.0.0 --port 3306 --password=winteriscoming -u root" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment