Skip to content

root user can't create new database #750

@Sixeight

Description

@Sixeight

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.
  • I think following code are wrong condition or wrong error message.
    • # 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions