MySQL :: MySQL 8.0 Reference Manual :: 15.4.1.1 PURGE BINARY LOGS Statement
The binary log is a set of files that contain information about
data modifications made by the MySQL server. The log consists of
a set of binary log files, plus an index file (see
Section 7.4.4, “The Binary Log”).
MySQL :: MySQL 8.0 Reference Manual :: 15.3.5 LOCK INSTANCE FOR BACKUP and UNLOCK INSTANCE Statements
Executing the LOCK INSTANCE FOR BACKUP
statement requires the BACKUP_ADMIN
privilege. The BACKUP_ADMIN
privilege is automatically granted to users with the
RELOAD privilege when performing an
in-place upgrade to MySQL 8.0 from an earlier
version.
從 MySQL 8.0.28 開始,當 MySQL 持有 LOCK INSTANCE FOR BACKUP 鎖時,是不能運行 PURGE BINARY LOGS。
MySQL :: MySQL 8.0 Reference Manual :: 15.3.5 LOCK INSTANCE FOR BACKUP and UNLOCK INSTANCE Statements
Executing the LOCK INSTANCE FOR BACKUP
statement requires the BACKUP_ADMIN
privilege. The BACKUP_ADMIN
privilege is automatically granted to users with the
RELOAD privilege when performing an
in-place upgrade to MySQL 8.0 from an earlier
version.
MySQL :: MySQL 8.0 Reference Manual :: 15.4.1.1 PURGE BINARY LOGS Statement
The binary log is a set of files that contain information about
data modifications made by the MySQL server. The log consists of
a set of binary log files, plus an index file (see
Section 7.4.4, “The Binary Log”).
Xtrabackup flushing binary logs while still locked
I’m just trying to ascertain if I have a Bug or not with xtrabackup, or if it is intended to work this way. I am using: MySQL (Oracle): 8.0.39 xtrabackup version: 8.0.35-31 When xtrabackup runs it runs using the --lock-ddl option which runs lock instance for backup. At the end of the process it runs FLUSH NO_WRITE_TO_BINLOG BINARY LOGS Then afterwards it runs UNLOCK INSTANCE From the logs: 2025-04-04T05:00:01.560946+01:00 0 [Note] [MY-011825] [Xtrabackup] Executing LOCK INSTANCE FOR BACK...