I have already posted some time ago a post related to the same topic (see here).
Today, I want to explain the easiest way to create an asynchronous replica from an existing MySQL instance, that this time has already data !
The Existing Situation and the Plan
Currently we have a MySQL server using 8.0.17 and GTID enabled on
mysql1
. mysql2
is a single fresh
installed instance without any data.
The plan is to create a replica very quickly and using only a SQL connection.
Preliminary Checks
First we verify that mysql1
has GTID enabled. If not
we will enable them:
mysql> select @@server_id,@@gtid_mode,@@enforce_gtid_consistency; +-------------+-------------+----------------------------+ | @@server_id | @@gtid_mode | @@enforce_gtid_consistency | …[Read more]