脳みそスワップアウト

揮発性なもので。おもにPHPのこととか。

slow_log 関連

オンライン変更の時にいつも忘れるのでメモ

set global slow_query_log_file='/var/log/mysqld/slow_query.log';
set global long_query_time=0.1;
set global slow_query_log=1;

show global variables LIKE '%long%';
show global variables LIKE '%slow%';