Created
May 24, 2016 12:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! 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