Configuring group replication

In this step, we are going to configure MySQL group replication step by step. For demonstration purposes, I am going to run three instances of a MySQL 8.0.13 server on a single machine. We are also going to deploy a single primary mode of group replication.

I have downloaded MySQL 8.0.13 Community Edition and extracted it to C:\mysql-8.0.13. Open the Command Prompt, and execute the following command to create three directories under C:\mysql-8.0.13\data, that is, server1, server2, and server3:

---------------------C:\>cd mysql-8.0.13C:\mysql-8.0.13>cd dataC:\mysql-8.0.13\data>mkdir server1C:\mysql-8.0.13\data>mkdir server2C:\mysql-8.0.13\data>mkdir server3C:\mysql-8.0.13\data>cd..C:\mysql-8.0.13\>cd binC:\mysql-8.0.13\bin>mysqld ...

Get Advanced MySQL 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.