In April, I already posted an article on how to upgrade safely your MySQL InnoDB Cluster, let’s review this procedure now that MySQL 8.0.12 is out.
To upgrade all the members of a MySQL InnoDB Cluster (Group), you need to keep in mind the following points:
- upgrade all the nodes one by one
- always end by the Primary Master in case of Single Primary Mode
- after upgrading the binaries don’t forget to start MySQL without starting Group Replication (
group_replication_start_on_boot=0
) - to run
mysql_upgrade
Let’s see this in action on the video below:
As you could see, this is quick and easy.
Summary
This is an overview of the operations to run on each nodes, one by one:
mysql> set persist group_replication_start_on_boot=0; # systemctl stop mysqld # yum update mysql-community-server mysql-shell # systemctl start mysqld # mysql_upgrade mysql> set persist group_replication_start_on_boot=1; mysql> restart;
Enjoy MySQL InnoDB Cluster, good migration to 8.0.12 and don’t forget to register to Oracle Open World if you want to learn more about MySQL 8.0 and InnoDB Cluster !