There are multiple way to setup replication with MySQL 8.0 and our replication offer as never been so rich: asynchronous, semi-synchronous, group replication, multi-source, … and much more options !
But if you want to setup a very quick Master-Slave environment from scratch for a quick test (you can always use dbdeployer), here are some commands to make it right the first time
Requirements
You need to have MySQL 8.0 installed and running on both servers
and with the same initial data (a fresh install for example).
Here we use mysql1 and mysql2. We will
also use GTID as it’s much more convenient.
Servers Configuration
Let’s setup mysql1 first:
mysql1> SET PERSIST server_id=1; mysql1> SET …[Read more]