I have a case where the database is lifted from the backup every day, I work with it, the next day the database is lifted from a new backup.
Usually, when you drop database, disk space released. You use option innodb_file_per_table = 1 ? Maybe your MySQL used disk space for this parameter, log-bin? Check this parameter in the config files. You can use commands, for example, PURGE BINARY LOGS TO 'mysql-bin.010'; PURGE BINARY LOGS BEFORE '2014-02-02'
Thanks, I'll try
You must verify the expire_logs_days parameter if you used log_bin.
PURGE BINARY LOGS BEFORE '2024-05-06' this command freed up all the space occupied by binlog.001257 files in /var/lib/mysql. Added "binlog_expire_logs_seconds=86400" to the config.
You need used meaning in the parameters binlog_expire_logs_seconds or expire_logs_days it dependence from your system. If you use replication, maybe you need more value from this parameter.
Обсуждают сегодня