-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Problem
- Following pull-request makes prevent creating new database by root user.
- Use this container on CI, I want to create database at the launching time.
- example: use circleci/mysql:5.7-ram , I can't create database before luanch.
- I think following code are wrong condition or wrong error message.
mysql/5.7/docker-entrypoint.sh
Lines 156 to 165 in b7e0196
# This will prevent the CREATE USER from failing (and thus exiting with a half-initialized database) if [ "$MYSQL_USER" = 'root' ]; then mysql_error <<-'EOF' MYSQL_USER="root", MYSQL_PASSWORD cannot be used for the root user Use one of the following to control the root user password: - MYSQL_ROOT_PASSWORD - MYSQL_ALLOW_EMPTY_PASSWORD - MYSQL_RANDOM_ROOT_PASSWORD EOF fi
- Message order to set environment variable, but all environment are ignored by this condition.
Expected result
- I want to use root user for CI testing.
clover0, scott1702, utgwkk, polamjag, send and 38 moredneukirchen and pimeysflipace, falkenhawk, dneukirchen, pimeys and AriesyuGTH
Metadata
Metadata
Assignees
Labels
No labels