Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories


How to install MySQL server 5.6 or 5.7

Ástþór IPÁstþór IP

MySql

Debian Linux distros up to version 9 (Stretch) ships with MySQL server 5.5 but the latest GA (Generally Available) releases of MySql server are 5.6 and 5.7 with some major enhancements and added features, including support for InnoDB Full-text search.

Compatibility

This tutorial has been tested on the following Linux distributions:

Debian Linux 9 (Stretch)
Debian Linux 8 (Jessie)
Debian Linux 7 (Wheezy)

Last updated:
26th of March 2018

Here’s a tutorial on how to install MySQL server 5.6 or 5.7 (selectable in the process).

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

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

2. Install the MySQL APT repository config tool

dpkg -i mysql-apt-config_0.8.9-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

4. Install the server

apt-get install mysql-community-server

That’s all!

Comments 4
  • kuko
    Posted on

    kuko kuko

    Author

    new package at the time of writing: mysql-apt-config_0.3.6-1debian8_all.deb


  • Plop
    Posted on

    Plop Plop

    Author

    Failed to fetch http://repo.mysql.com/apt/debian/dists/wheezy/Release Unable to find expected entry ‘mysql-apt-config/binary-armhf/Packages’ in Release file (Wrong sources.list entry or malformed file)


  • Ryan
    Posted on

    Ryan Ryan

    Author

    Helpful, thanks!


  • Dzianis
    Posted on

    Dzianis Dzianis

    Author

    Helped me on Debian 8 too. Thank you!