遅いクエリログ:mariadb oa debian 12でどこに設定する必要がありますか?

遅いクエリログ:mariadb oa debian 12でどこに設定する必要がありますか?

もし私がするなら

show global variables like "%slow%"

私はこれらの結果を得る

ここに画像の説明を入力してください。

ただし、これらの値がどこに設定されているかが見つかりません。

ほとんど見つけようとしましたが、

cd /etc/mysql
grep slow -R -n

全く違う結果が出ました

mariadb.conf.d/50-server.cnf:21:# Broken reverse DNS slows down connections considerably and name resolve is
mariadb.conf.d/50-server.cnf:63:# Enable the slow query log to see queries with especially long duration
mariadb.conf.d/50-server.cnf:64:#log_slow_query_file    = /var/log/mysql/mariadb-slow.log
mariadb.conf.d/50-server.cnf:65:#log_slow_query_time    = 10
mariadb.conf.d/50-server.cnf:66:#log_slow_verbosity     = query_plan,explain
mariadb.conf.d/50-server.cnf:68:#log_slow_min_examined_row_limit = 1000
conf.d/mysql.cnf:3:log_slow_query                   = on
conf.d/mysql.cnf:4:log_slow_query_file              = /var/log/mysql/slow.log
conf.d/mysql.cnf:5:log_slow_query_time              = 1.0
conf.d/mysql.cnf:6:log_slow_verbosity               = query_plan,explain
conf.d/mysql.cnf:7:log_slow_min_examined_row_limit  = 10

クソ「debian-slow.log」ファイルセットはどこにありますか?これらの設定をどこでどのようにオーバーライドする必要がありますか?私のconf.d/mysql.cnfファイルが完全に無視されるのはなぜですか?

ベストアンサー1

おすすめ記事