• Resolved froggybywater

    (@froggybywater)


    On the second page of http://travelwithmydogs.com/wp-admin/setup-config.php?step=1, I enter my database name, username, password, and hostname (localhost). When I click submit, I get “Error establishing a database connection.” All of the entries are correct. I checked with my host (HostGator) and was told the hostname is localhost. What do I do next? Please make this simple – I’m a newbie at this…

Viewing 9 replies - 1 through 9 (of 9 total)
  • If everything looks OK, I’ve had issues where for whatever reason my password to the database would be causing the issue. I’d start by changing the password for your database to be all lower-case with a couple of numbers.

    First, make sure, the database name you are providing here is same as the name of the database created in your cpanel.
    Then, make sure, the user name is the name of the user created in cpanel. (It is NOT the wp admin username)
    Then, make sure , the password is that of that user created in cpanel.
    Then, hit submit. and hope it will be okay πŸ™‚

    Thread Starter froggybywater

    (@froggybywater)

    The database name, username and password are the same ones I created in the SQL Database section of the cpanel. My password is all lowercase letters and numbers. I’m still getting “Error establishing a database connection.” Should I go back into cpanel and change the username and password? Or should I reinstall WordPress? On my first install, wp-admin was not the first folder in the WordPress file as it was described in the installation instructions. Don’t know if that makes a difference. Thank you for trying to help me!

    It looks like you may have to setup the wp-config.php file manually if you are not using the HostGator quick install option.

    If you can open the wp-config-sample.php you should be able to edit the settings to reflect your settings.

    Here’s a link to the HostGator specific walk through.

    http://support.hostgator.com/articles/specialized-help/technical/wordpress/how-to-install-wordpress-manually

    If this seems like it’s too difficult, you can give the Host Gator quick install option.

    Thread Starter froggybywater

    (@froggybywater)

    I will try your suggestions and let you know how I do. Thank you.

    Moderator t-p

    (@t-p)

    Also, ask your hosting provider if the database server is offline (if the problem suddenly happened)

    Thread Starter froggybywater

    (@froggybywater)

    I Tried connecting to tavelwithmydogs.com/wp-config.sample.php and received this message – “Error establishing a database connection”. I have contacted HostGator to see if the database sever is offline. After I hear back from them, I will try the HostGator WordPress install.

    Moderator t-p

    (@t-p)

    I Tried connecting to tavelwithmydogs.com/wp-config.sample.php

    Actually you are supposed use the default “wp-config.sample.php” to create “wp-config.php”

    Please see instructions here:
    https://codex.ww.wp.xz.cn/Editing_wp-config.php

    Thread Starter froggybywater

    (@froggybywater)

    I finally had to resort to the Hostgator WordPress quick install. But everything works now. Thanks to everyone who tried to help me!

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

The topic ‘Error establishing a database connection’ is closed to new replies.