Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
Created April 16, 2019 09:10
Show Gist options
  • Save FreeFly19/cb7e92da45fa50226961f4df3c05eb44 to your computer and use it in GitHub Desktop.
Save FreeFly19/cb7e92da45fa50226961f4df3c05eb44 to your computer and use it in GitHub Desktop.
MySQL Shell Docker example
docker run --name=mysql8 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=test -d mysql/mysql-server:8
docker exec -it mysql8 mysqlsh root@localhost/test -S/var/lib/mysql/mysql.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment