Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Showing slow logs

Discussion in 'Workarounds and Optimization' started by k2tec, Jun 25, 2014.

  1. k2tec

    k2tec Well-Known Member

    Joined:
    Aug 26, 2011
    Messages:
    98
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    I am running MySQL 5.6 and I read that the log-slow-queries = changed to slow-query-log
    I tried both but the mysql server did not restart.
    this are the changes I tried.
    This is the old one.
    Code:
    log-slow-queries=/var/lib/mysql/slow_queries.log
    long_query_time = 3
    this the new one
    Code:
    slow-query-log=/var/lib/mysql/slow_queries.log
    long_query_time = 3
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. k2tec

    k2tec Well-Known Member

    Joined:
    Aug 26, 2011
    Messages:
    98
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Thanks Michael,
    I will give it a try tomorrow.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. k2tec

    k2tec Well-Known Member

    Joined:
    Aug 26, 2011
    Messages:
    98
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Michael
    This okay
    I put this also in my.cnf
    And if you want to see the queries without indexes, but this will fill your log file very fast
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice