Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian 8 - Install MySQL 5.6

MySQL 5.6 promises some performance increases over version 5.5, but requires at least 1GB of RAM to run/install, unlike 5.5 which would run well on a 512MB RAM VPS. Execute the following script to install the server.

Check the wget line in the script below against here to check if it is still the latest version.

#!/bin/bash
cd /tmp

# Confirm the version at http://dev.mysql.com/downloads/repo/apt/
wget https://dev.mysql.com/get/mysql-apt-config_0.8.3-1_all.deb

sudo dpkg -i mysql-apt-config_*.deb

# At the popup-page, select "Apply"

# Install mysql-server package
sudo apt-get update
sudo apt-get install mysql-community-server -y

References

Last updated: 25th January 2021
First published: 16th August 2018