You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug #25469161: MYSQLDUMP SHOULD EXCLUDE REPLICATION
REPOSITORY METADATA TABLES
Description : Replication meta data tables such as
mysql.slave_master_info and mysql.slave_relay_log_info
gets backed up when MYSQLDUMP is executed.
Analysis:- The above mentioned replication tables should be
excluded from backups because they are not a logical part of
data. These tables contain replication channel meta data
that will leave the replication meta data in an invalid
state after the restoration of the dump.
Fix: Both the tables are excluded from MYSQLDUMP.
/*!40101 SET character_set_client = @saved_cs_client */;
5652
+
/*!40101 SET @saved_cs_client = @@character_set_client */;
5653
+
/*!40101 SET character_set_client = utf8 */;
5654
+
CREATE TABLE IF NOT EXISTS `slave_relay_log_info` (
5655
+
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',
5656
+
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',
5657
+
`Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',
5658
+
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',
5659
+
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',
5660
+
`Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
5661
+
`Number_of_workers` int(10) unsigned NOT NULL,
5662
+
`Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',
5663
+
`Channel_name` char(64) NOT NULL COMMENT 'The channel on which the slave is connected to a source. Used in Multisource Replication',
0 commit comments