terminal
# launch
docker run --name mysqldb -p 3306:3306 -v `pwd`/db:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=p -d mysql
# mysql client
docker exec -it mysqldb mysql -uroot -pp
# stop db
docker rm -f mysqldb
Go to list of users who liked
More than 3 years have passed since last update.
# launch
docker run --name mysqldb -p 3306:3306 -v `pwd`/db:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=p -d mysql
# mysql client
docker exec -it mysqldb mysql -uroot -pp
# stop db
docker rm -f mysqldb
Register as a new user and use Qiita more conveniently
Go to list of users who liked