Skip to content

udemy-course/mysql-cn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mysql-cn

How to use devcontainer

Start the container

docker run --name mysql-demo -e MYSQL_ROOT_PASSWORD=root -d  -v $(pwd):/test mysql:5.7

如果要用mysql8,可以把上面的tag改成 8.0.30 (more versions can be found https://hub.docker.com/_/mysql/tags?page=1)

docker run --name mysql-demo -e MYSQL_ROOT_PASSWORD=root -d  -v $(pwd):/test mysql:8.0.30
@xiaopeng163 ➜ /workspaces/mysql-cn (master) $ docker ps
CONTAINER ID   IMAGE       COMMAND                  CREATED              STATUS              PORTS                 NAMES
49726d1b57b8   mysql:5.7   "docker-entrypoint.s…"   About a minute ago   Up About a minute   3306/tcp, 33060/tcp   mysql-demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published