Skip to content

Instantly share code, notes, and snippets.

@cuonghuynh
Last active September 29, 2018 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuonghuynh/2ff1101a8fcd3688c12547903e9d1a07 to your computer and use it in GitHub Desktop.
Save cuonghuynh/2ff1101a8fcd3688c12547903e9d1a07 to your computer and use it in GitHub Desktop.
Upgrade mysql 5.5 to 5.7 on Ubuntu

First of all , Backup All your Database.

$ mysqldump --all-databases > all_databases.sql

Add the newer APT package repository from the MySQL APT repository page

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

$ sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb

Choose version 5.7 -> OK

Update your package index

$ sudo apt-get update

Upgrade all databases

$ sudo apt-get install mysql-server

Restart MySQL Server

$ sudo service mysql restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment