Forums

Error establishing a database connection & HTTP 500 (3 posts)

  1. Angie23
    Member
    Posted 1 year ago #

    My site has been up and running for over a year.

    Today I am getting almost constant HTTP Error 500 Internal server error messages

    and Error establishing a database connection
    when trying to post.

    The site has been between slow to unresponsive and completely down.
    this morning for 6 hours .

    Since it is working intermittenly and I did not change anything lately
    (I installed Dynamic Content Gallery 2 days ago, but the site was running without any problems for 30 hours ,so I don't think that is the cause)

    I think it may be server related ?

    They are currently looking at it(no response yet)

    My question,I read on the internet that this is Host problem and one should switch to private Hosting. Is that True ?

    I am using HostPapa right now and private hosting sounds very expensive.

    Any solution to this ?
    An informed answer would be greatly appreciated !

  2. t-p
    Member
    Posted 1 year ago #

    Error connecting to your database:

    -First, double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    -Then check that you don't need to change the database host from "localhost" to something else. You can get that info from your hosting provider.-Check you have actually created a database with the same database name as is in your wp-config.php file.

    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.

    There are also many threads on this topic on these forums: http://wordpress.org/search/Error+establishing+a+database+connection?forums=1

  3. govpatel
    Member
    Posted 1 year ago #

    Since your website was working fine then there must problem with your host server as wordpress can not connect to database
    I would check with them before making any changes on wordpress.

Topic Closed

This topic has been closed to new replies.

About this Topic