1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Frequent Error establishing a database connection ec2

Discussion in 'MySQL' started by neeshu, May 14, 2018.

  1. #1
    Hi
    My website is on ec2, I have not put in any post on it still,
    I am getting the error Error establishing a database connection every 5-6 hours, I
    have to manually restart the MySQL server using the command line,
    the site is running on Ubuntu, Apache and using WordPress.
    SEMrush
    Can you please suggest what could be the problem
    I checked the access logs there were some Russian IP's which I had blocked
    then I had also checked the CPU usage on AWS which rarely reached 100% usually it was
    in range of 30-40%

    Regards
     
    neeshu, May 14, 2018 IP
    SEMrush
  2. SpacePhoenix

    SpacePhoenix Active Member

    Messages:
    58
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    60
    #2
    Do you have any cron jobs that run every 5-6 hours?
     
    SpacePhoenix, May 15, 2018 at 1:27 AM IP
    neeshu likes this.
  3. neeshu

    neeshu Well-Known Member

    Messages:
    645
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #3
    neeshu, May 15, 2018 at 2:51 AM IP