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:

mysqldump --all-databases > all_databases.sql

Download the latest APT package repository

wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb