LoginSignup
3
1

More than 5 years have passed since last update.

dockerでmysqlコンテナを起動する

Last updated at Posted at 2016-07-20
docker run \
    --detach \
    --name mysql \
    --publish 3306:3306 \
    --volume /mysql:/var/lib/mysql \
    --env MYSQL_ROOT_PASSWORD=root \
    --restart always \
    --log-opt max-size=5m \
    --log-opt max-file=10 \
    mysql:5.7 \
    --character-set-server=utf8mb4 \
    --collation-server=utf8mb4_general_ci \
    --max-allowed-packet=32M
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1