• I’m currently trying to install WordPress using 000webhost. I’ve got to the process where it asks for database connection details. I seem to have entered all SQL database details correct, but it is constantly coming up with the message:”Error establishing a database connection”, even though I believe all the details I entered were accurate.

    I read somewhere that it takes a couple of days for the database to validate; is this true? If not, does anybody know how I can get past this process?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    – “Error establishing a database connection” means that there is a problem with the connection to your database

    — a problem with the credentials stored in the wp-config.php file not matching what mysql expects.

    Try reviewing the following codex for possible reasons and solutions: https://codex.www.ads-software.com/Common_WordPress_Errors#Error_Establishing_Database_Connection

    The error message “Error establishing a database connection” display when there is issue in connecting to database server.

    Most of time the issue is caused by wrong database parameters in wp-config file namely..

    • Database name
    • Database username
    • Database password
    • Database host

    If you think all above values are correct the look for server issues like,,

    • Your database has met its quota and has been shut down.
    • The server is down.

    Hope it will help.

    Thanks

    I remember reading from somewhere that 000webhost do not use localhost so you might want to double check that value as well.

    “I read somewhere that it takes a couple of days for the database to validate; is this true? ” NO this is not true. Once a database is create you can immediately connect your domain to it.

    You need to look into your wp-config.php file and make sure your
    Database name
    Database username
    Database password

    matches correctly.

    gary

    (@pheelamillo)

    wptl_usermeta: 1 client is using or hasn’t closed the table properly
    wptl_posts: 1 client is using or hasn’t closed the table properly
    wptl_options: 2 clients are using or haven’t closed the table properly
    wptl_postmeta: 2 clients are using or haven’t closed the table properly
    wptl_term_taxonomy: 1 client is using or hasn’t closed the table properly
    wptl_term_relationships: 1 client is using or hasn’t closed the table properly

    I was asked to post this here I got the same error. I have repaired the database but I want to be sure it doesn’t happen again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Error establishing a database connection" message when installing’ is closed to new replies.