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!

SOLVED Purpose of /scripts/enable_sqloptimizer?

Discussion in 'Database Discussion' started by Valetia, Dec 30, 2016.

  1. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    213
    Likes Received:
    1
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Hi all, does anyone know what is the purpose of the following script:

    /scripts/enable_sqloptimizer

    Thanks in advance!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Valetia,

    This will activate slow query logging for MySQL with the addition of the following entries in the system's /etc/my.cnf file (the entries may look different, depending on the version of MySQL installed on your system):

    Code:
    slow-query-log=1
    long-query-time=1
    You can remove the entries with the following script:

    Code:
    /scripts/disable_sqloptimizer
    Thanks!
     
    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