wordpress templates issue

Discussion in 'WordPress' started by black.hat, Jan 24, 2014.

  1. #1
    my site starting having DB issue after trying some new wordpress templates, the error says Establishing Database Connection.

    It happens only when i keep refreshing the page (sometimes not), any idea whats going on?

    the site is: http://nattythemes.com/

    Thanks.
     
    black.hat, Jan 24, 2014 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    Seems to work fine here. I would suggest using super cache to speed things up. I am not aware of that error being anything but a database connection error.. meaning the info is wrong in wp-config.

    That is certainly not the case here since I am looking at it :)
    Nigel
     
    Nigel Lew, Jan 24, 2014 IP
  3. Steve509

    Steve509 Peon

    Messages:
    3
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    3
    #3
    Seems to be working here as well. I did a little bit of searching and found the following article:
    http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

    Unless you are having connectivity problems it suggests to add the following into your wp-config.php (careful, will allow anyone to repair your database)
    define('WP_ALLOW_REPAIR', true);
    
    Code (markup):
    Then go to http://nattythemes.com/wp-admin/maint/repair.php where you will see:
    [​IMG]
    And repair your database (Personally I would repair and optimize)

    Good luck and keep us posted. Don't forget to remove the define('WP_ALLOW_REPAIR', true); line from your wp-config.
     
    Steve509, Jan 25, 2014 IP
    Nigel Lew likes this.