Skip to content

Commit

Permalink
add slow log to mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Dec 30, 2023
1 parent 30febe5 commit 8a20ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/logrotate/mysql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/web/logs/mysql/error.log
/web/logs/mysql/slow.log
{
dateext
dateformat .%Y-%m-%d
Expand Down
2 changes: 2 additions & 0 deletions config/mysql/my.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ mysqlx=0
socket=/var/mysql-socket/mysqld.sock
skip_external_locking = 1
table_open_cache_instances=16
slow_query_log=1
slow_query_log_file=/var/log/mysql/slow.log

max_connections=20
max_user_connections=19
Expand Down

0 comments on commit 8a20ece

Please sign in to comment.