Reference from: http://www.jb51.net/article/50884.htm
Before the lab people said can not find completely remove the installed Mysql-cluster method, I did not care, today had to delete his previous installation of the Mysql-cluster, found on the Internet link shown in the method, tested really feasible .
Specific as follows:
First with dpkg--get-selections | The grep mysql command looks for MySQL-related software (such as) installed on your computer:
[Email protected]:/home/sdp# dpkg--get-selections | grep mysql
libdbd-mysql-perl install
libmysqlclient18:amd64
install mysql-client-5. 5
Install Mysql-common
install mysql-server-5.5
install mysql-server-core-5.5 Insta ll
Use the Apt-get--purge remove mysql-server and other commands to uninstall the above installed software one by one;
Finally, use Whereis MySQL to find the residual MySQL files, and the following command to clean up the remnants (and my.cnf files):
Apt-get autoremove
apt-get autoclean
rm/etc/mysql/-R
rm/var/lib/mysql/-R
Completely remove MySQL from Debian