rotating mysql slow query log

前端 未结 3 2016
别跟我提以往
别跟我提以往 2021-01-15 02:47

My server\'s MySQL slow query log is growing day by day (37 MB now) so I want to rotate it. If I move current log file to another folder then will MySQL automatically create

3条回答
  •  攒了一身酷
    2021-01-15 02:55

    You can use logrotate script to periodically rotate MySQL logs, and possibly keep a limited number of previous logs (to save space). You can configure it with any schedule you like.

    Personally, I found it easy to configure using Webmin GUI

提交回复
热议问题