Skip to content

Instantly share code, notes, and snippets.

@jll90
Created May 24, 2016 12:52
Show Gist options
  • Save jll90/cb2b8e9356c74b1a5d859818dba30f48 to your computer and use it in GitHub Desktop.
Save jll90/cb2b8e9356c74b1a5d859818dba30f48 to your computer and use it in GitHub Desktop.
Remove older version of mysql and install mysql 5.6 - Ubuntu 16.04
#! bin bash
#removes older packages
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
#removes configuration files
sudo rm -rf /var/lib/mysql
#installs mysql 5.6
sudo apt-get install mysql-client-5.6 mysql-server-5.6
#enable service
sudo service mysql enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment