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.

mysql query timeout

Discussion in 'Database Discussions' started by Masimo, Dec 23, 2015.

  1. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    How can limit mysql query runing time? and what is standard time for shared hosting server?
    Today, i found a hosting account on my server with too much mysql query runing time when server load was normal, but too slow on response.
    When i suspend, server come normal.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    Is it possible to timeout a query in MySQL?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You may find this document helpful if your goal is to detect slow queries:

    MySQL :: MySQL 5.6 Reference Manual :: 5.1.4 Server System Variables

    It's likely a good idea to address the databases and tables that are resulting in slow queries if that's an issue you are facing.

    Thank you.
     
Loading...

Share This Page