When configuring MySQL Group Replication (MGR), the loose_ prefix is required for some parameters to ensure flexibility and backward compatibility. Some parameters in MySQL may be experimental or used only in certain scenarios. In these cases, the loose_ prefix ensures that these parameters can be ignored.
The following is an example of configuring MySQL Group Replication with the loose_ prefix:
[mysqld]# Enable Group Replicationloose_group_replication_start_on_boot=offloose_group_replication_bootstrap_group=offloose_group_replication_group_name="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"loose_group_replication_local_address="192.168.0.1:33061"loose_group_replication_group_seeds="192.168.0.1:33061,192.168.0.2:33061,192.168.0.3:33061"loose_group_replication_single_primary_mode=onloose_group_replication_enforce_update_everywhere_checks=off# Group Replication SSL settings (optional)loose_group_replication_ssl_mode=REQUIREDloose_group_replication_ssl_ca=ca.pemloose_group_replication_ssl_cert=server-cert.pemloose_group_replication_ssl_key=server-key.pem# Other necessary settingsbinlog_checksum=NONEbinlog_format=ROWlog_slave_updates=ONgtid_mode=ONenforce_gtid_consistency=ONmaster_info_repository=TABLErelay_log_info_repository=TABLEtransaction_write_set_extraction=XXHASH64
Info
Using the loose_ prefix is a safe practice when configuring MGR parameters, especially when running in different versions or plugin states. It ensures compatibility and flexibility of configuration files and avoids unwanted startup errors.