Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bluepuma

    (@bluepuma)

    Well, now the user has to know how to create a database, that causes trouble, too.

    To me containers are arriving everywhere, using MySQL with root user because
    1) it’s only available internally to the container
    2) every app in a container gets their own MySQL container

    Maybe the option can be hidden behind a advanced setup parameter which is remembered during setup process, like https://server/wordpress/wp-admin/install.php?advanced=true

    Thread Starter bluepuma

    (@bluepuma)

    By the way, there are many support threads asking about how to create a database.

    Manually create a MySQL database?
    How to create MySQL database withOUT using PHPmyadmin?
    Help installing phpmyadmin to create database?
    WordPress installed but did not create database

    So by just including this little option you can help a lot of people during setup.

    Thread Starter bluepuma

    (@bluepuma)

    Did you read the full message?

    DB_NAME – INCORRECT
    DB_USER – correct
    DB_PASSWORD – correct
    DB_HOST – correct

    results in

    Can’t select database
    We were able to connect to the database server (which means your username and password is okay) but not able to select the xwordpress database.
    
    - Are you sure it exists?
    - Does the user admin have permission to use the xwordpress database?
    - On some systems the name of your database is prefixed with your username, so it would be like username_xwordpress. Could that be the problem?

    => That is fine, I can log in, but the database name is incorrect.

    Now I only change the DB_NAME in wp-config.php to be correct.

    DB_NAME – correct
    DB_USER – correct
    DB_PASSWORD – correct
    DB_HOST – correct

    results in

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
    
    - Are you sure you have the correct username and password?
    - Are you sure that you have typed the correct hostname?
    - Are you sure that the database server is running?

    => That is wrong, because I already know from previous test, that username, password and hostname are correct and the database server is running. Let me quote again: “We were able to connect to the database server (which means your username and password is okay)”

    Thread Starter bluepuma

    (@bluepuma)

    No.

    DB_NAME – INCORRECT
    DB_USER – correct
    DB_PASSWORD – correct
    DB_HOST – correct

    => Can’t select database. We were able to connect to the database server (which means your username and password is okay) but not able to select the xwordpress database.

    DB_NAME – correct
    DB_USER – correct
    DB_PASSWORD – correct
    DB_HOST – correct

    => Error establishing a database connection

    This does not make sense.

    I have already proven, that DB_USER, DB_PASSWORD and DB_HOST are correct, because it can tell me that it can’t select the database. So why would it tell me it can’t connect to database if the database name is the only thing that changes from incorrect to correct?

Viewing 4 replies - 1 through 4 (of 4 total)