搭建MySQL 8.0.18+MGR单主模式过程中,执行install PLUGIN group_replication SONAME 'group_replication.so';语句安装MGR(MySQL Group Replication)插件时提示“binlog checksum should be NONE for Group Replication”和“Unable to start Group Replication on boot”。
MGR插件在MySQL 5.7之前的版本不支持binlog_checksum。如果binlog_checksum被设置为其他值,则MGR插件将无法正常工作。因此,需要将“binlog_checksum”设置为“none”以确保MGR插件可以正常工作。在MySQL 5.7及以上版本中,MGR插件已经支持binlog_checksum。
binlog_checksum=none
sudo service mysql restart
install PLUGIN group_replication SONAME 'group_replication.so';