Previous Episodes:
After seeing the basics of deploying a MySQL server in Docker, in
this article we will lay the foundations to customising a node
and eventually using more than one server, so that we can cover
replication in the next one.
Enabling GTID: the dangerous approach.To enable GTID, you need to
set five variables in the database server:
- master-info-repository=table
- relay-log-info-repository=table
- enforce-gtid-consistency
- gtid_mode=ON
- log-bin=mysql-bin
For MySQL 5.6, you also need to set log-slave-updates, but we
won't deal with such ancient versions here.
Using the method …