執(zhí)行這句 show variables like 'show_query_log' 出現(xiàn)空集
mysql> show variables like 'show_query_log'; Empty set, 1 warning (0.00 sec) 執(zhí)行后發(fā)現(xiàn)空集?
mysql> show variables like 'show_query_log'; Empty set, 1 warning (0.00 sec) 執(zhí)行后發(fā)現(xiàn)空集?
2017-07-21
舉報(bào)
2019-01-07
是slow_query_log ?不是 ?show_query_log 看清楚了??!
2017-07-23
可以先設(shè)置slow_query_log為on
執(zhí)行SET GLOBAL slow_query_log=ON;
再執(zhí)行show variables like'slow_query_log';
應(yīng)該就可以看到結(jié)果了