WordPress.org

Forums

Error Establishing Connection To Database. (4 posts)

  1. BidiBoy
    Member
    Posted 1 year ago #

    Hey guys i got a problem i made update to my wordpress to 3.9.1 and i have a big problem.

    Since i made the problem if on my blog there ar more then 80 100 people online wordpress starts to display theath is not able to connect to database till someone quits the website after if i hit refresh it starts to work i had contacted even cpanel/cloudlinux ...etc because im the owner of the dedicated server and nothink.

    Before making the update i was allwais having 1000 online and the problem was not showing.

    So what i was thinking i put this code in wp-config

    $link = mysql_connect('localhost', 'dbuser', 'mypass');
    if (!$link) {
    die('Could not connect: ' . mysql_error());
    }

    And the problem was not showing any more.

    If i`m removing the code it starts again.

    I had made a fresh reinstall of the wordpress and i had optimized the database because i was thinking sompting is wrong and still the same problem if i remove the code belong from wp-config.

  2. Leonard Smallbones
    Member
    Posted 1 year ago #

    I will truly appreciate your assistance as my website, http://www.valuables.co.za which is continually down showing the very same line " Error establishing a database connection "

    My website is new on Word Press , a designer put it up for me.

    Will appreciate any assistance to get my website up permanently

  3. BidiBoy
    Member
    Posted 1 year ago #

    So dose someone can give us a had with this problem ? Im not the only one with ths problem i got another 50 customers with the same problem.

    [Moderator Note: No bumping. If it's that urgent, please consider hiring someone instead.]

  4. Marc
    Member
    Posted 1 year ago #

    Hey guys, this is a volunteer forum. Please be kind a respectful, because everyone here has a life outside of WordPress.org.

    http://codex.wordpress.org/Forum_Welcome

    ----
    @BidiBoy: It sounds like your webhost can't handle that many users online at the same time. Try using a content delivery network (CDN). It should take some of the strain off your webhost, and decrease your site's load time for your visitors.

    CloudFlare
    https://www.CloudFlare.com
    Incapsula
    http://www.incapsula.com/

Topic Closed

This topic has been closed to new replies.

About this Topic