由于我的 mysql 数据库仅用于小型 Web 应用程序,因此我不需要任何复制功能。在监视时,我注意到一个名为thread/sql/compress_gtid_table
. 在倾倒一些桌子时,mysqldump
我收到了这个警告:
Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, even those that changed suppressed parts of the database. If you don't want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events.
我怎么能确定,所有 GTID 功能都被完全禁用并且不会造成开销?
这是我的配置:
mysql> SHOW VARIABLES LIKE '%GTID%';
+----------------------------------+----------------+
| Variable_name | Value |
+----------------------------------+----------------+
| binlog_gtid_simple_recovery | ON |
| enforce_gtid_consistency | OFF |
| gtid_executed_compression_period | 1000 |
| gtid_mode | OFF |
| gtid_next | AUTOMATIC |
| gtid_owned | |
| gtid_purged | |
| session_track_gtids | OFF |
+----------------------------------+----------------+