How to install MySQL 5.7 for Magento 2 to Debian 8 (Jessie)?

aptitude install lsb-release &&
wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb &&
dpkg -i mysql-apt-config_0.6.0-1_all.deb


aptitude update &&
aptitude install mysql-community-server
1 Like

See also:

1 Like

The aptitude update step can now produce the error:

GPG error: http://repo.mysql.com jessie InRelease: The following signatures were invalid: KEYEXPIRED 1487236823 KEYEXPIRED 1487236823 KEYEXPIRED 1487236823

You can fix it with the command:

apt-get install dirmngr
apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5

https://bugs.mysql.com/bug.php?id=85029#c456784

How to install MySQL 5.7 for Magento 2 to Debian 9 (Stretch)?

How to install MySQL 5.7 for Magento 2 to Ubuntu 18?