Public | Automated Build

Last pushed: 5 days ago
Short Description
MySQL is a widely used, open-source relational database management system (RDBMS).
Full Description

Supported tags and respective Dockerfile links

This MySQL docker image adds the following functionality

Support creating more than one database using MYSQL_DATABASE

You can add comma separated database names to the MYSQL_DATABASE env var.


MYSQL_DATABASE=prod,reporting,demo would create three databases.

The user MYSQL_USER will get all privledges on all the databases created this way.

Import DB on firstrun

If you create a docker image that is based on this one and include a file import.sql that file will automatically be imported when the database starts up the first time.

Example Dockerfile

FROM lancehudson/mysql:latest

Do that and have an import.sql in the same dir and that is literally it.


MYSQL_IMPORT - This contains the path to the script to import on startup, doesn't make sense to change this unless you are not using my image.

Docker Pull Command
Source Repository

Comments (0)