SOLVED Purpose of /scripts/enable_sqloptimizer?

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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!