Skip to content

Instantly share code, notes, and snippets.

@isogram
Created December 21, 2015 09:44
Show Gist options
  • Save isogram/7bf49fa408dc7cf28645 to your computer and use it in GitHub Desktop.
Save isogram/7bf49fa408dc7cf28645 to your computer and use it in GitHub Desktop.
Update MySQL version from 5.5 to 5.6 on Ubuntu Server

step 1 : take a backup

mysqldump --lock-all-tables -u root -p --all-databases > dump.sql

step 2 : remove old mysql

sudo apt-get remove mysql-server
sudo apt-get autoremove

step 3 : install new version of mysql

sudo apt-get install mysql-client-5.6 mysql-client-core-5.6
sudo apt-get install mysql-server-5.6

step 4 : restore your data

mysql -u root -p < dump.sql

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