1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Database Connection Error

Discussion in 'Blogging' started by VeeGeeN, Jul 23, 2016.

  1. VeeGeeN

    VeeGeeN Regular Member

    Joined:
    Mar 8, 2016
    Messages:
    257
    Likes Received:
    154
    So I'm using Newspaper 7.1.1 nulled.

    Everything is fine. I post on Reddit and add a couple of upvotes anywhere under 120 users on the site at one time.. still okay..

    Anywhere beyond this I begin to get Database Connection Errors.

    I have no idea why and don't know how to fix it.

    W3 Total Cache
    Cloudflare
    WooCommerce
    Visual Composer
    Open In New Window
    Jetpack
    For Regenerate Thumbnails
    404 to 301
    Linkify Text
    tag Div Mobile and Social

    Was using WP Automatic as well but have disabled and deleted the plugin in fear of that using too many connections

    Any suggestions and help would be much appreciated
     
  2. BlogPro

    BlogPro Jr. VIP Jr. VIP

    Joined:
    Apr 23, 2012
    Messages:
    551
    Likes Received:
    474
    Home Page:
    Where are you hosting it?
     
  3. Jayder

    Jayder Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 8, 2015
    Messages:
    1,044
    Likes Received:
    907
    Location:
    Pays-Bas
    Home Page:
    I had that a lot with Godaddy.. Thank god I transfered al my websites away from that awful hosting company
     
  4. Roy Carter

    Roy Carter Registered Member

    Joined:
    Apr 24, 2015
    Messages:
    50
    Likes Received:
    4
    Deactivate your all plugins then check..
     
  5. VeeGeeN

    VeeGeeN Regular Member

    Joined:
    Mar 8, 2016
    Messages:
    257
    Likes Received:
    154
    Hostmonster VPS

    I'll do that now, thanks
     
  6. BlueZero

    BlueZero Power Member

    Joined:
    Jul 6, 2011
    Messages:
    506
    Likes Received:
    261
    Occupation:
    Webdeveloper, Project Manager
    Location:
    Byte in the Net
    Home Page:
    A specific DB Error Message would help to detect what is the problem. But as Roy Carter said, deactivate all plugins and then add them one by one to see when it stops working.
    Anyway, if u will still have the problem, then shoot me a PM.
     
  7. VeeGeeN

    VeeGeeN Regular Member

    Joined:
    Mar 8, 2016
    Messages:
    257
    Likes Received:
    154
    Error establishing a database connection


    ^^ That is literally all we see in bold black h2 lol
     
  8. Dingsend

    Dingsend BANNED BANNED

    Joined:
    Jun 16, 2016
    Messages:
    114
    Likes Received:
    13
    Try to optimize the db?
     
  9. Gary Carlyle

    Gary Carlyle Regular Member

    Joined:
    Aug 27, 2010
    Messages:
    248
    Likes Received:
    44
    Home Page:
    When you have a lot of users and pages caching can actually start to have the opposite than intended effect. Especially since when the cache is cleared it will start to crawl your site and doesn't care if it takes your server offline. Both WP plugins and Cloudflare.

    Get Wordfence plugin and start restricting bots and crawlers.
     
  10. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Jr. VIP

    Joined:
    Nov 10, 2012
    Messages:
    12,121
    Likes Received:
    33,651
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    What are you using Jetpack for?
    Great plugin but causes problems on a lot of shared hosting.
     
  11. luccha

    luccha Regular Member

    Joined:
    Apr 18, 2009
    Messages:
    345
    Likes Received:
    95
    Occupation:
    Cron
    Location:
    On Earth
    I had these kind of problems when the sql querries increased. I created 2-3 more mysql logins in phpmyadmin and added a script so that each time it picks up a random connection out of 3. It was long time back. I don't know if this is the same error.
     
  12. creativeshuvo

    creativeshuvo Senior Member

    Joined:
    Apr 10, 2016
    Messages:
    827
    Likes Received:
    109
    Gender:
    Male
    Occupation:
    Web Developer
    Location:
    Dhaka Division, Banglades
    can you provide a screenshot . there are several reason to show this kind of error
     
  13. superindian

    superindian BANNED BANNED

    Joined:
    Jun 28, 2016
    Messages:
    79
    Likes Received:
    4
    Gender:
    Male
    check ur db size as well,how many posts u have
     
  14. aafable

    aafable Registered Member

    Joined:
    Sep 25, 2015
    Messages:
    68
    Likes Received:
    8
    Gender:
    Female
    Occupation:
    Certified Digital Marketer
    Location:
    San Diego, CA
    Home Page:
    This happens a Lot. Usually, the wp-options.php file is not pointing to the right database.
    Deactivate the last plugin you installed and gp backwards. Similarly, if u remember creating a post/page with plenty of pages, delete that page and see if it works again.
     
  15. superindian

    superindian BANNED BANNED

    Joined:
    Jun 28, 2016
    Messages:
    79
    Likes Received:
    4
    Gender:
    Male
    dude
    its not confuguration issue
     
  16. 365pricefinder

    365pricefinder Regular Member

    Joined:
    Mar 1, 2016
    Messages:
    225
    Likes Received:
    33
    Gender:
    Male
    Location:
    United Kingdom
    Home Page:
    Have you checked your database username and password matches with wp-config.php username and password?
    Sounds like you may have deleted your database.
     
  17. aafable

    aafable Registered Member

    Joined:
    Sep 25, 2015
    Messages:
    68
    Likes Received:
    8
    Gender:
    Female
    Occupation:
    Certified Digital Marketer
    Location:
    San Diego, CA
    Home Page:
    This I would recommend! This is what happened to me too. So I hope you have a copy of your database.
     
  18. superindian

    superindian BANNED BANNED

    Joined:
    Jun 28, 2016
    Messages:
    79
    Likes Received:
    4
    Gender:
    Male
    this hapend when db server crashes ,nothing fancy
     
  19. BlogPro

    BlogPro Jr. VIP Jr. VIP

    Joined:
    Apr 23, 2012
    Messages:
    551
    Likes Received:
    474
    Home Page:
    OP clearly states that his site works fine until more than a specific number of users land up on his site, which is when he gets the DB error. So how would you "recommend" checking his wp-config.php? Seriously?
     
  20. 365pricefinder

    365pricefinder Regular Member

    Joined:
    Mar 1, 2016
    Messages:
    225
    Likes Received:
    33
    Gender:
    Male
    Location:
    United Kingdom
    Home Page:
    I agree with you.