Upgrade MySQL 5.6 to MySQL 5.7 – CentOS

1. Create a backup of the original MySQL data

mv /var/lib/mysql /var/lib/mysql.original

2. Download the MySQL 5.7 RPM

wget -P /tmp/

3. Remove the MySQL-Community RPM that contains MySQL 5.6

yum remove mysql-community-release

4. Install the MySQL 5.7 RPM

rpm -ivh /tmp/mysql57-community-release-el7.rpm

5. Update the MySQL Repository to 5.7

yum update mysql

6. Let MySQL know that it received an upgrade


Leave a Reply

Your email address will not be published. Required fields are marked *