Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Enable 8.x
yum-config-manager --disable mysql56-community
yum-config-manager --disable mysql57-community
yum-config-manager --enable mysql80-community

# Update to 8.x
yum update

Start the MySQL Server

...

Start the mysql Server without replication.

Code Block
# Start - IMPORTANT - WITHOUT REPLICATION
systemctl set-environment MYSQLD_OPTS="--skip-slave-start"
systemctl start mysqld.service

Note, that starting the mysql server may take some time. It may even appear to be hung, but wait for about a minute or so before hitting Ctrl+Ca few minutes and let it complete.

Warning
titlemysql_upgrade

mysql_upgrade is run automatically by all current 8.x versions of MySQL Server.

The output of mysql_upgrade can be found in /var/log/mysqld.log and errors will be in /var/log/messages

Check this file for errors.

Next restart the MySQL server.

Code Block
systemctl stop mysqld

.

service systemctl set-environment MYSQLD_OPTS= systemctl start mysqld.service

Check Database and Replication are OK

Code Block
mysql -u root -p<password> -e "SHOW SLAVE STATUS\G"

...