Public Repository

Last pushed: a month ago
Short Description
Scalingo MySQL Image
Full Description

Running the image

This image contains mysql. To start the image, you can run the following snippet:

docker run -it -p 3306:3306 \
           -v <DATA_DIRECTORY>:/var/lib/mysql \
           scalingo/mongo /mysql

You database is now up and running on the port 3306 of your host.

Parameters

  • <DATA_DIRECTORY>: directory used to store database data.

Environment

  • DB_USER (Optional, default: mysql): username used for database authentication.
  • DB_PASSWORD (Optional, default: secret): password used for database authentication.
  • DB_ADMIN_PASSWORD (Optional: default: admin-secret): password used for the admin account.

  • DB_UID (Optional, default: 1503): user UID that mysql should use to store data and run itself. You can set it to your own UID to have a simpler dev environment. Just add -e DB_UID=`id -u` before the -v flag.

Permissions

A database with the same name as $DB_USER will be created, the user
$DB_USER will be available to connect to it.

The admin user is named root and can access any database with the password
defined in $DB_ADMIN_PASSWORD and create new databases also.

Startup logs

Normal startup logs are :

 160613  8:11:14 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
 160613  8:11:14 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
 160613  8:11:14 [Note] Server socket created on IP: '0.0.0.0'.
 160613  8:11:14 [Warning] 'user' entry 'root@fff5562e8198' ignored in --skip-name-resolve mode.
 160613  8:11:14 [Warning] 'proxies_priv' entry '@ root@fff5562e8198' ignored in --skip-name-resolve mode.
 160613  8:11:14 [Note] Event Scheduler: Loaded 0 events
 160613  8:11:14 [Note] mysqld: ready for connections.
 Version: '5.5.49-0ubuntu0.14.04.1-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
Docker Pull Command
Owner
scalingo

Comments (0)