mirror of https://github.com/veops/cmdb.git
Fix deploy 1700028675 (#272)
* fix: Solving the timezone issue in Redis, as well as the problem of MySQL logs always being in UTC timezone. * fix: change the config path of slow_log into /tmp directory in mysqld.cnf file
This commit is contained in:
parent
21d445458d
commit
17612105a5
|
@ -46,11 +46,11 @@ read_rnd_buffer_size=512K
|
||||||
skip-name-resolve
|
skip-name-resolve
|
||||||
max_connections=1000
|
max_connections=1000
|
||||||
slow_query_log = ON
|
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
|
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"
|
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
|
#log-error = /var/log/mysql/error.log
|
||||||
# By default we only accept connections from localhost
|
# By default we only accept connections from localhost
|
||||||
#bind-address = 127.0.0.1
|
#bind-address = 127.0.0.1
|
||||||
# Disabling symbolic-links is recommended to prevent assorted security risks
|
# Disabling symbolic-links is recommended to prevent assorted security risks
|
||||||
log_timestamps = SYSTEM
|
log_timestamps = SYSTEM
|
||||||
|
|
Loading…
Reference in New Issue