fix: change the config path of slow_log into /tmp directory in mysqld.cnf file

This commit is contained in:
fxiang21 2023-11-22 18:26:26 +08:00
parent 628c15fe4f
commit 9308732bde
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ read_rnd_buffer_size=512K
skip-name-resolve
max_connections=1000
slow_query_log = ON
slow_query_log_file = /var/log/mysql_slow.log
slow_query_log_file = /tmp/mysql_slow.log
long_query_time = 1
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
#log-error = /var/log/mysql/error.log