Documentation Home
MySQL 8.3 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 294.0Kb
Man Pages (Zip) - 409.0Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb
Excerpts from this Manual

20.2.1.4 启动组复制

首先,需要确保在服务器 s1 上安装了组复制插件。如果您在选项文件中使用了 plugin_load_add='group_replication.so',那么组复制插件已经安装好了,可以跳到下一步。否则,您必须手动安装插件;为此,请使用 mysql 客户端连接到服务器,并执行以下 SQL 语句:

mysql> INSTALL PLUGIN group_replication SONAME 'group_replication.so';

要检查插件是否安装成功,请执行 SHOW PLUGINS; 并检查输出结果。它应该显示类似以下内容:

mysql> SHOW PLUGINS;
+----------------------------+----------+--------------------+----------------------+-------------+
| Name                       | Status   | Type               | Library              | License     |
+----------------------------+----------+--------------------+----------------------+-------------+
| binlog                     | ACTIVE   | STORAGE ENGINE     | NULL                 | PROPRIETARY |

(...)

| group_replication          | ACTIVE   | GROUP REPLICATION  | group_replication.so | PROPRIETARY |
+----------------------------+----------+--------------------+----------------------+-------------+