From 9308732bde3198e441f8526d7c7cd9e81c93b84d Mon Sep 17 00:00:00 2001 From: fxiang21 Date: Wed, 22 Nov 2023 18:26:26 +0800 Subject: [PATCH] fix: change the config path of slow_log into /tmp directory in mysqld.cnf file --- docs/mysqld.cnf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/mysqld.cnf b/docs/mysqld.cnf index 4163eb0..13779b0 100644 --- a/docs/mysqld.cnf +++ b/docs/mysqld.cnf @@ -46,11 +46,11 @@ 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 # By default we only accept connections from localhost #bind-address = 127.0.0.1 # Disabling symbolic-links is recommended to prevent assorted security risks -log_timestamps = SYSTEM \ No newline at end of file +log_timestamps = SYSTEM