Hi,
I've noticed that I'm missing some disk space and today I started with the investigation.
At the end I found out that there is a huge 2TB log file inside:
/usr/share/cagefs-skeleton/var/lib/mysql/server_name.log
I've checked the file and it contains all MySQL queries sent from the websites on the server and some additional stuff like MySQL connections...
Questions:
- how do I maintain this log file? rotation? limits?
- why there is no default limit?
- what to do now? can I just delete it? or truncate it? or something else?
Please advise. 🤔
I've noticed that I'm missing some disk space and today I started with the investigation.
At the end I found out that there is a huge 2TB log file inside:
/usr/share/cagefs-skeleton/var/lib/mysql/server_name.log
I've checked the file and it contains all MySQL queries sent from the websites on the server and some additional stuff like MySQL connections...
Questions:
- how do I maintain this log file? rotation? limits?
- why there is no default limit?
- what to do now? can I just delete it? or truncate it? or something else?
Please advise. 🤔
Comment