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
More than 5 years have passed since last update.
dockerでmysqlコンテナを起動する
Last updated at Posted at 2016-07-20
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
31