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.

important -mysql problem- down

Discussion in 'Workarounds and Optimization' started by morteza3245, Oct 30, 2013.

  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi
    im sorry for not good subject, forgive me

    today i see my site's not load, after check, i see mysql is down, then try for start and restart,
    then i see a table from basic site (myself hosting site) have 38GB size, (that was size from log sms)

    then i try faster empty that,

    now my problem is:
    when i suspend same user, all other sites work fine,
    but when i unsuspend same user, i see Slowly all site have error (cant connect to database), then i suspend same user, i see faster site's work fine.

    Please help me

    i do below action, but without different:

    but again i have same problem,

    i have below log:



    Please help me.

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,667
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi
    below is my.cnf config:

     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,667
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    If the issue only occurs when one account is active, it's likely that account that is causing MySQL to fail. You can run the following command when the account is active to see what tables are causing the problem:

    Code:
    mysqladmin processlist;
    Also, the following thread is helpful for obtaining statistics that will better help others give you advice on optimizing the /etc/my.cnf values:

    mysqlmymonlite.sh server stats gathering tool for cPanel Server

    Thank you.
     
  5. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Ah, yes, i see same user have much mysql sleep, see below pleaase:

    Note: this "sameuser_new" is same user have problem

    what i must do?


    Thanks.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,667
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will likely want to suspend the account and restart MySQL. Or, contact the user to alert them of the issue with their database. Otherwise, the following thread is helpful for obtaining statistics that will better help others give you advice on optimizing the /etc/my.cnf values:

    mysqlmymonlite.sh server stats gathering tool for cPanel Server

    Thank you.
     
  7. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks, user is for myself
    that was very very good 5years old, now have this problem
    how i can know which table is sleep?
     
    #7 morteza3245, Oct 30, 2013
    Last edited: Oct 30, 2013
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,667
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The table is not listed. You will need to manually review the database. You will likely find one specific table with a large size or with several records. phpMyAdmin is useful for this if you are not comfortable on the command line.

    Thank you.
     
Loading...

Share This Page