Merge pull request #107 from infosiftr/mysql-root-default-user

Add note for clarification
This commit is contained in:
Tianon Gravi 2014-11-24 16:05:54 -08:00
commit ee1c95a568
2 changed files with 10 additions and 2 deletions

View File

@ -66,7 +66,11 @@ These optional environment variables are used in conjunction to set both a MySQL
user and password, which will subsequently be granted all permissions for the user and password, which will subsequently be granted all permissions for the
database specified by the optional `MYSQL_DATABASE` variable. Note that if you database specified by the optional `MYSQL_DATABASE` variable. Note that if you
only have one of these two environment variables, then neither will actually do only have one of these two environment variables, then neither will actually do
anything - these two are meant to be used in conjunction with one another. anything - these two are meant to be used in conjunction with one another. When
these variables are used, it will create a new user with the given password in
the MySQL database - there is no need to specify `MYSQL_USER` with `root`, as
the `root` user already exists in the default MySQL and the password is
controlled by `MYSQL_ROOT_PASSWORD`.
### `MYSQL_DATABASE` ### `MYSQL_DATABASE`

View File

@ -54,7 +54,11 @@ These optional environment variables are used in conjunction to set both a MySQL
user and password, which will subsequently be granted all permissions for the user and password, which will subsequently be granted all permissions for the
database specified by the optional `MYSQL_DATABASE` variable. Note that if you database specified by the optional `MYSQL_DATABASE` variable. Note that if you
only have one of these two environment variables, then neither will actually do only have one of these two environment variables, then neither will actually do
anything - these two are meant to be used in conjunction with one another. anything - these two are meant to be used in conjunction with one another. When
these variables are used, it will create a new user with the given password in
the MySQL database - there is no need to specify `MYSQL_USER` with `root`, as
the `root` user already exists in the default MySQL and the password is
controlled by `MYSQL_ROOT_PASSWORD`.
### `MYSQL_DATABASE` ### `MYSQL_DATABASE`