Skip to content

Instantly share code, notes, and snippets.

@keysona
Created February 20, 2017 06:21
Show Gist options
  • Select an option

  • Save keysona/9b34605ef36cd2e5cc649b44f5c494f7 to your computer and use it in GitHub Desktop.

Select an option

Save keysona/9b34605ef36cd2e5cc649b44f5c494f7 to your computer and use it in GitHub Desktop.
启动一个字符编码为utf8的mysql容器(docker)
docker run --name mysql -e MYSQL_ROOT_PASSWORD=dg123321 -e MYSQL_DATABASE=blog -v /data/blog:/var/lib/mysql -v /config/mysql:/etc/mysql/conf.d -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_general_ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment