A new type of backup lock permits DML during an online backup while preventing operations that could result in an inconsistent snapshot. The new backup lock is supported by LOCK INSTANCE FOR BACKUP and UNLOCK INSTANCE syntax. The BACKUP_ADMIN privilege is required to use these statements.
createuser backup_user@'localhost' identified by'Zyadmin@123'; grant backup_admin on*.*to backup_user@'localhost'; show grants for backup_user@'localhost';
# 会话1 mysql> use booboo; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A