Install MySQL 5.6 in Ubuntu 16.04
Install MySQL 5.6 in Ubuntu 16.04
04 - makandropedia
Oracle maintains a list of official APT repositories for MySQL 5.6, but those repositories do not yet support
Ubuntu 16.04. However, the 15.10 repos will work for 16.04.
I would not recommend to do this in production environment, but on a development machine, follow these
steps:
Dump your databases, if you want to keep them. Keeping the data directory itself did not work for me.
Uninstall everything related to MySQL 5.7 with
Purge remainders (e.g. marked with rc) with dpkg -P <package> [<package> ...].
Download the apt_config-debian package from Oracle (https://repo.mysql.com/) and install it using
dpkg -i mysql-apt-config_0.7.2-1_all.deb
Choose "MySQL 5.6" and "Ubuntu Wily" (assuming Xenial is not yet provided)
Run
You might have to replace "xenial" with "wily". Although you are using 16.04 (codename Xenial), Oracle
currently seems to only provide 5.6 in the repos for 14.04 (codename Wiley). But those sources work for
16.04, too.
https://makandracards.com/makandra/39899-install-mysql-5-6-in-ubuntu-16-04 1/2
9/2/2017 Install MySQL 5.6 in Ubuntu 16.04 - makandropedia
Package: *
Pin: origin "repo.mysql.com"
Pin-Priority: 999
Run
apt update
Run
In case you have installed and MySQL ruby gems (like mysql2), you will have to remove and reinstall them,
since they have been linked to the old libraries. Note that gem pristine will not help.
https://makandracards.com/makandra/39899-install-mysql-5-6-in-ubuntu-16-04 2/2