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
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
mysql2. We will
also use GTID as it’s much more convenient.
mysql1> SET PERSIST server_id=1; mysql1> SET …[Read more]