项目作者: henryckh

项目描述 :
Setup for the MySql using utf8 with auto data restore and phpmyadmin.
高级语言: Dockerfile
项目地址: git://github.com/henryckh/docker-mysql.git
创建时间: 2018-09-06T08:23:31Z
项目社区:https://github.com/henryckh/docker-mysql

开源协议:

下载


Docker-MySQL

Setup for a MySql docker using utf8 with phpmyadmin and initial data restore.

Restore from database

The MySql docker image will run SQL files stored in the /docker-entrypoint-initdb.d/
directory when you first launch a container.
Restore the entire database by putting your database dump schema.sql into the directory.

Config to support MySQL utf8

If you use utf8 as the database content but haven’t configured your database to use utf8,
you maybe encouter encoding error.
my.cnf contains the settings of utf8

Config MySql

See the offical MySql environment variables for more information.

Result

Go to http://localhost:8080, with username: root, password: testing. A dump database is create from the schema.sql file.