The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sql Server Down every 3/4 hours

Discussion in 'Database Discussions' started by Danny Timmer, Jun 14, 2012.

  1. Danny Timmer

    Danny Timmer Registered

    Joined:
    Jun 14, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello there,

    I am currently new to cpanel and I have a server with 1GB Ram Atom 1.6 processor. I have succesfully installed cpanel on my server.

    I got a problem with my mysql, I have currently three webhosting accounts on my server and on all servers they are reporting that the mysql database is down after 3 hours. When I restart the server the problem is solved and after ca. 3 hours the mysql is again down.

    Any instructions to resolve this?

    Thanks in advance!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest taking a look at the MySQL error log to see if any specific errors are logged before MySQL fails. The MySQL error log is located at:

    # /var/lib/mysql/hostname.err

    Replace "hostname" with the hostname of your server.

    Thank you.
     
  3. wvelludo

    wvelludo Member

    Joined:
    Jul 5, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I Have this issue too, it's easy to solve, mysql crashes because reach limit of files opened to user, to solve this you need edit my.cnf and change limit of connections and files and change limits to mysql user on linux.

    On /etc/security/limits.conf change soft and hard limits to mysql user (you can select others values):

    mysql soft nofile 48000
    mysql hard nofile 64000

    And in /etc/my.cnf change values for these itens (you can select others values):

    max-connections=10000
    open-files-limit=65535

    Here on open-files-limit i put the max permited.

     
Loading...

Share This Page