• Resolved oolio1oolie

    (@oolio1oolie)


    Hail Friend!

    Step 5 says: “If you placed the WordPress files in a subdirectory called blog, for example, you should visit: https://example.com/blog/wp-admin/install.php”

    I substituted the values “erikthevermilion.com/photo-to-oil-painting/” and got error:

    “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.”

    I tried changin my “username” to the same as the database name, and that gave me a 404 error.

    Should the wordpress database and the wordpress subfolder have the same name?

    Thank you for your advice
    Oolio Oolie

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    In wp-config.php you need to fill in your database name, database username and database-password.
    You noted these down under step 2, right?

    And no, the database name (usually wp or wordpress) does not need to have the same name as the directory where you copied the wordpress files (ususally wordpress or blog).

    Also your login name for the database is and can be different from your wp-login in the wp dasboard.

    Thread Starter oolio1oolie

    (@oolio1oolie)

    Hail Henk Holland

    Thank you for your answer.

    All what you said had been done, before ever I got the error messages.

    The username, that I put into wp_config.php, is the same username, that is used for my website (I mean regular website, not blog, on the same server).

    Is that the right value? Same way, the password. Why did I get the error messages?

    What must I do, to make it to be right?

    Thank you!

    Hi oolio1oolie,

    Under step 2 you created a database, right? With a database name, database username and database-password.
    These go in wp-config.php, see example below DB_NAME wordpress or what you named it and DB_USER and DB_PASSWORD on the XXXXXX’s

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress');
    
    /** MySQL database username */
    define('DB_USER', 'XXXXXX');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'XXXXXXXX');

    Henkholland, thank you for your attention.

    Yes, I filled out those 3 values, before this thread was begun. The username and password are the same, as are used for my .com website. Are those the values, that I ought to use there?

    The value, for the db_name is “wordpress_photo_to_oil”, which I just checked and verified in the server, in fact copied/pasted to this message.

    Meanwhile, the support forum did not accept my login, so I got a new password, which was also rejected. That is why I must answer you from a new identity. I wonder why my login failed, on oolio1oolie?

    Hi Erik,
    ….The username and password are the same, as are used for my .com website. Are those the values, that I ought to use there? ….

    No, probably not since they do not work. You need the ones you created specially under step 2:
    Under step 2 you created a database, right? With a database name, database username and database-password.

    Hail Henkholland,

    I believe that you have identified the cause of the problem. Thank you. I’ll have to send a support ticket to the server, as to how to find out what the other username and password are.

    “Password Syncing: We do not sync your database password with your other passwords because clients often have scripts that rely on a specific database password. Syncing the passwords could break those scripts. Always be sure to check your scripts after you change your database password in case you have a script that relied on the previous password”

    Hail Henk

    It is fixed, thancques to you!

    I made 2 mistakins:

    1) to assume that the years ago password change was global. Today I changed the database password, which was still set to the old one.

    2) to put hyphens in the database name, instead of underscores, in the code.

    Now it is installed, thank you Henk Holland.

    Great to hear Erik. Now the fun part starts.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Step 5: “Run the install script” – what values to use?’ is closed to new replies.