Want to subscribe to topics you're interested in?
Become a Member

Wordpress My site is working fine, after a few hours I get "Error establishing a database connection"

Discussion in 'Blogs & CMS usage' started by Obed Marquez, Apr 23, 2016.

  1. Obed Marquez

    Obed Marquez New Member

    4
    1
    3
    Mar 6, 2016
    Ratings:
    +1
    Local Time:
    5:12 PM
    Hi guys!

    I'm quite new here and to centmin mod. I've installed it using the auto installer, followed all instructions on the "installing centmin mod" site too.

    Everything is working fairly OK (apart that I can't import any images using the wordpress importer or any other, for some reason, if anyone knows a solution to that, let me know)

    The main problem is that, after the site is up for a few hours, it crashes and shows "Error establishing a database connection" .

    I checked all the details for the config file and they're OK. The site goes back up fine if I restart my server, but after a few hours or a day it crashes again.

    I'm using a RamNode 128Mb VPS with 64VSwap. I followed the instructions to install centminmod in such scenario and I said, it works fine for a while.

    Any ideas on why this could be happening? I tried reinstalling centmin mod twice, same happens.

    I suspect that the site might be too heavy for the database, but it happened as well before I imported the site, with a trial one.
     
  2. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:12 PM
    1.7.1
    MariaDB 10
    You need to check if MySQL is still up and running.
     
    • Informative Informative x 1
  3. Obed Marquez

    Obed Marquez New Member

    4
    1
    3
    Mar 6, 2016
    Ratings:
    +1
    Local Time:
    5:12 PM
    I tried restarting the MySQL service once to try sorting it out and it doesn't let me.

    Once at home I'll check if it's running or not.

    In case it's not running, any obvious solution to such issue or extra info I need to gather?