If you have installed MySQL through binaries, you have to remove the symlink to the old version (refer to the Uninstalling MySQL 8 section) and do a fresh installation (refer to the Installing MySQL on Linux Using Generic Binaries section):
- Start the server as described in the Starting or Stopping MySQL 8 section. Please note that the start procedure is the same for all the versions.
- Run the mysql_upgrade utility:
shell> sudo mysql_upgrade -u root -p
- Restart the MySQL server to ensure that any changes made to the system tables take effect:
shell> sudo systemctl restart mysqld