Upgrading MySQL 5.5 to 5.7 in Debian

I know, MySQL 5.5 is quite old, let’s get an upgrade then.

First of all, let’s backup the databases:

Download the latest APT package repository

Make sure you download the latest version of the package. Then instal it using dpkg:

you will be prompted with a dialog box, asking which version to install. If MySQL 5.7 isn’t there, press enter then select the version 5.7 from the list, select OK.

Then run the package update:

you will see the MySQL package is on the list:

Next step is to install the MySQL:

This is the most important step you can’t miss, upgrade the existing databases:

Final step, restart the database:


How To, Linux, ,

Any idea? Fill the comment below

This site uses Akismet to reduce spam. Learn how your comment data is processed.