The following are the steps to upgrade the MySQL installation-
Upgrade path
Preparation Upgrading the installation
Upgrading MySQL binary or package-based installation on Unix or Linux
MySQL You can also use the MySQL yum repository or the APT store library or SLES for upgrade
Upgrading a docker-installed MySQL on a repository or on Windows
Troubleshooting upgrades
Tables must be rebuilt or repaired or index.
MySQL database must be copied to other machines.
MySQL binary and package-based installation can be done in a number of different ways on Unix or Linux. They have been mentioned below.
In-place upgrade
Logical upgrade
MySQL cluster upgrade
Let’s take a brief look at each of the above methods:
An in-place upgrade involves shutting down the old MySQL server, replacing the old one MySQL binaries or new packages.
Once completed, the MySQL server will be restarted on the existing data directory.
Afterwards, the remainder of the existing installation that needs to be upgraded will be upgraded.
Logical upgrade involves exporting SQL from an old MySQL instance.
This can be done using a backup or export tool such as 'mysqldump'.
Install a new MySQL server by applying SQL to the new MySQL instance.
MGM node upgrade.
Data nodes are upgraded one at a time.
API nodes are upgraded one at a time, including the MySQL server.
Data dictionary upgrade.
System table upgrade.
The system restarts.
The above is the detailed content of Steps to upgrade your MySQL installation. For more information, please follow other related articles on the PHP Chinese website!