Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
スロークエリを見る
# 設定を確認
`show variables like 'slow%';`
`show variables like 'long%';`
# 設定する
```
set global slow_query_log_file = '/tmp/mysql-slow.log';
set global long_query_time = 1;
set global slow_query_log = ON;
```
# 確認する
`mysqldumpslow -s t /tmp/mysql-slow.log`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.