How to install MySQL server 5.6 or 5.7 on Debian 7 and 8

How to install MySQL server 5.6 or 5.7 on Debian 7 and 8

Debian provides MySQL server 5.5 with both wheezy and jessie but the latest GA (Generally Available) releases are 5.6 and 5.7 with some enhancements and added features, including support for InnoDB Full-text search.

Here’s how to install MySQL server 5.6 or 5.7 on Debian based Linux distros (including wheezy, jessie and Ubuntu):

1. Download the MySQL APT repository config tool (you can see more details here: http://dev.mysql.com/downloads/repo/apt/)

wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
wget https://repo.mysql.com//mysql-apt-config_0.8.6-1_all.deb

2. Install the MySQL APT repository config tool

dpkg -i mysql-apt-config_0.7.3-1_all.deb

You will be asked to select product and version that you want to install. In the first step, select Server and next select either mysql-5.6 or mysql-5.7. Then click Apply.

3. Update APT

apt-get update

如果出现 :
W: GPG error: http://repo.mysql.com jessie InRelease: The following signatures were invalid: KEYEXPIRED 1487236823 KEYEXPIRED 1487236823 KEYEXPIRED 1487236823

KEY 过期了执行下面的命令

#apt-key adv –keyserver pgp.mit.edu –recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5

原文 : http://techglimpse.com/update-gpg-key-mysql-repo-debian-ubuntu/

4. Install the server

apt-get install mysql-community-server

That’s all!

发表回复

*您的电子邮件地址不会被公开。必填项已标记为 。

*
*