Support » Fixing WordPress » Error establishing a database connection

  • Hi,

    My company previously had a WordPress site but the domain expired (it was hosted on Godaddy but we used WordPress CMS to run it). I have since renewed the domain but the wordpress site is still inaccessible. I need some help getting back into it but I’m being met with this error message :

    “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 you have typed the correct hostname?
    Are you sure the database server is running?”

    Can I have some help resolving these issues please as I need to get this site back up and running.

    I asked on wordpress.com but they couldn’t help as it’s not hosted there and they pointed me here. We had previously been running the site here using WordPress CMS :

    https://www.europeantourhospitality.com/wp-admin/profile.php

    Is it possible to look into whether that historically used to be the case as the team here are saying they used to log into WordPress to make changes to the site previously.

    Thanks,
    Seb

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi there.

    Sorry to hear you’re having this issue.

    First, have you seen this article explaining the possible causes of this error? https://wordpress.org/support/article/common-wordpress-errors/#error-establishing-database-connection

    Do you know if your hosting with GoDaddy also needed to be renewed, alongside the domain name? If so, it could be that the database details have changed. This is from the above article:

    “Error establishing a database connection” is usually caused by an error in your wp-config.php file. Access your site in your FTP client. Open up wp-config.php and ensure that the following are correct:

    Database name
    Database username
    Database password
    Database host

    If you can’t see any issues in your wp-config.php file, I’d recommend asking GoDaddy if they can help. For example, if they’ve needed to restore your hosting service, it’s worth asking if they have also restored your database to how it was previously set up. In any case, they should be able to help or point you in the right direction.

    Hope this helps, please let me know if you have any questions.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.