https://github.com/henryckh/docker-mysql
Setup for the MySql using utf8 with auto data restore and phpmyadmin.
https://github.com/henryckh/docker-mysql
docker docker-compose mysql phpmyadmin restore-data utf8
Last synced: about 2 months ago
JSON representation
Setup for the MySql using utf8 with auto data restore and phpmyadmin.
- Host: GitHub
- URL: https://github.com/henryckh/docker-mysql
- Owner: henryckh
- Created: 2018-09-06T08:23:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T08:24:10.000Z (almost 8 years ago)
- Last Synced: 2025-03-02T15:45:11.565Z (over 1 year ago)
- Topics: docker, docker-compose, mysql, phpmyadmin, restore-data, utf8
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://hub.docker.com/_/mysql/) for more information.
## Result
Go to http://localhost:8080, with username: root, password: testing. A dump database is create from the `schema.sql` file.