Support » Fixing WordPress » Getting database error

  • got database error after installing new theme.

    the site was working fine after the new theme was installed for about 2-3 hours and then it suddenly gave the following error: “Error establishing a database connection”

    I am even unable to login as admin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Double-check the database connection details in your wp-config.php file.

    https://codex.wordpress.org/Editing_wp-config.php#Set_Database_Name

    If they are correct, contact your hosting provider to ask why your database server is offline.

    hi james thanks for quick response.

    But unable to login as admin to our site itself. When we tried contacting blueshost.com from whom we had purchased the site 7 years ago, they simply said we no longer provide support you need to contact bluehost india and when we contacted them they are saying you need to get in touch with bluehost.com.

    One thing is sure, we will remove our sites from bluehost and never recommend it to anyone henceforth.

    till then dont know what else can we do as we are unable to login to the site at all.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Checking the contents of the wp-config.php file does not require logging into the site itself.

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and edit the file with a plain text editor.

    If the connection details are correct, then that would indeed suggest that the database is offline, and only your hosting provider can fix that.

    Unable to login to the “hosting account’s control panel” itself not just the site. Unable to login as client in the bluehost.com site as they are saying you need to login to bluehost.in which says there is no client by this name. Tried emailing and calling them and they are passing the blame to each other.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Unfortunately, you’ll have to sort that out with them.

    There’s nothing we can do here about that, and you absolutely need access to your hosting account’s control panel, not only to proceed, but also to pay your bill too before your hosting expires. It’s very important.

    The site is 7 years old and is auto renewed every year without fail.

    Shame on bluehost for shifting services from US to INDIA team all of a sudden without any backup support or clue.

    Anyway, thank you very much for your time.

    Mike Hansen

    (@mikehansenme)

    Bluehost Employee

    Hey @Techdevine, I am sorry to hear about the confusion. Bluehost.com does indeed still have US based support for the bluehost.com. If you can email me your domain, I am happy to look into the issue for you. Can you also provide me with the name of the tech you spoke with?

    Thanks,
    Mike Hansen
    mike.hansen [@] endurance.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting database error’ is closed to new replies.