You are on page 1of 1

Take a snapshot of the servers.

Using MySQL Enterprise Backup, create a backup on its host:

mysqlbackup --defaults-file=/etc/my.cnf --backup-dir=/backups/backup_`date +%d%m_%H%M`


--user=root -p --host=127.0.0.1 backup-to-image

To check issues, execute this command:

mysqlcheck -u root -p --all-databases --check-upgrade

To upgrade a member of a group:

1. Connect a client to the group member and issue STOP GROUP_REPLICATION. Before proceeding,
ensure that the member's status is OFFLINE by monitoring the replication_group_members
table.
2. Disable Group Replication from starting up automatically so that you can safely connect to the
member after upgrading and configure it without it rejoining the group by setting
group_replication_start_on_boot=0.
3. Stop the member, for example using mysqladmin shutdown or the SHUTDOWN statement. Any
other members in the group continue running.
4. Upgrade the member:
sudo yum update mysql-server
5. Once the MySQL upgrade procedure has been performed on the member,
group_replication_start_on_boot must be set to 1 to ensure Group Replication starts correctly
after restart. Restart the member.
6. Connect to the upgraded member and issue START GROUP_REPLICATION. This rejoins the
member to the group.
7. MySQL 8.0 server starts successfully, execute mysql_upgrade to perform the remaining upgrade
tasks:
mysql_upgrade -u root -p
8. Then shut down and restart the MySQL server to ensure that any changes made to the system
tables take effect:
mysqladmin -u root -p shutdown
systemctl start mysqld

You might also like