Error establishing database connection

  • Unknown's avatar

    I received an error page saying it is unable to establish a database connection. Nothing was changed for username and pw in wp-config. What does it mean if it can’t contact the localhost?

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Looks like you’re in the wrong forum. It appears that you’re using the open source WordPress.org software and you need to seek help at these forums:

    https://wordpress.org/support/forums/

    These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

  • @fstat, I was just curious and wanted to know, how is the above user’s site wordpress.org hosted if it is ‘design894675846.wordpress.com’?

    As per my knowledge, sites in wordpress.com with a free plan comes with <sitename>.wordpress.com with it. At least that’s how I identify them.

    Could you please explain? Also, please correct me if I am wrong here.

    Thanks,
    Vinny

  • staff-arya,

    The site indicated in their post is not the site they need help with. We know this by reading their question – if they’re able to directly edit the wp-config file, then they’re not speaking about a WordPress.com site, nor does the mention of localhost have anything to do with WordPress.com. You’ll only ever encounter those terms if you’re working with a self-hosted WordPress installation.

    The “blog I need help with” gets completed automatically with whatever is set as someone’s primary site in their account if they don’t manually select a site, so never assume that’s actually the site someone is asking about.

  • Ah! I feel so silly now :p

    Thank you @kokkieh for explaining it so nicely. :)

  • I hope you won’t feel too silly, staff-arya. People confuse that; no worries. Now you know!

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