Last week I posted a blog on how to setup multi-source for MySQL
5.7 using GTID based replication, in this blog we will do the
same using MySQL 8.0.
Most of the procedure are the same, there are only two things
that we need to change are;
1) Procedure for creating the replication user.
2) Fetching the GTID value from the MySQL dumpfile.
1) Create replication user for MySQL 8
MySQL 8 uses a new authentication plugin so to create the
replication user will differ from MySQL 5.7. The procedure for
5.7 was with:
mysql> CREATE USER 'repl_user'@'slave-host' IDENTIFIED BY 'repl_pass';
mysql> GRANT REPLICATION SLAVE ON *.* TO 'repl_user'@'slave-host';
With MySQL 8 you need to create the user like:
mysql> CREATE USER …[Read more]