I have changed MySQL 8 on my Windows 10 development machine to write logfiles (general log and slow queries log) to "E:\mysql logfiles". I'd like to compress this directory using the Windows "Compress Directory to save space" advanced feature in the Windows 10 directory properties to save space (currently my logfile is over 50 GB). I'm wondering though: is this a good idea? Or will this break MySQL in (subtle or not) ways?
Mysql – Is it safe to use the Windows “Compress directory to save space” feature on the directory that contains the MySQL general log file
MySQLmysql-8.0windows 10
Related Question
- Mysql – stress-testing MySQL slave with master’s queries
- Thesql import failed caused by overgrown general log file
- Mysql – Import .frm and .ibd files into a new instance of MySQL
- MySQL Data Corruption in VirtualBox with Shared Folder
- Run Two MySQL Servers Using Same Data Directory
- Mysql – thesqlbackup failed with error when –use-tts option is used
- MySQL 8.0.24 Crash – Windows 10 Crashes Not Resolved by Reboot
Best Answer
The Windows feature to compress a directory is transparent to all applications. However, it does slow down I/O operations some.
The General Log should not be left on forever; it is a big disk hog. Instead, turn it on only long enough to get the necessary debugging info, then turn it off and toss the log file.
Or, you could log to
TABLE
and notFILE
; I think the table has a limit. (Check the settings.)