Last active
August 29, 2015 14:05
-
-
Save mbeall/711fae8e4e4e42575229 to your computer and use it in GitHub Desktop.
Purge and re-install mysql-server
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
# (Run as sudo) | |
# (Run after purge_mysql.sh) | |
apt-get install --reinstall mysql-server |
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
# (Run as sudo) | |
# (Run first) | |
service mysql stop #or mysqld | |
killall -9 mysql | |
killall -9 mysqld | |
apt-get remove --purge mysql-server mysql-client mysql-common | |
apt-get autoremove | |
apt-get autoclean | |
deluser mysql | |
rm -rf /var/lib/mysql | |
apt-get purge mysql-server-core-5.5 | |
apt-get purge mysql-client-core-5.5 | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment