ubuntu15.10卸载lnmp中的mysql

1.查看列表

dpkg --list|grep mysql


2.挨个卸载

sudo apt-get autoremove --purge mysql-client-core-5.6

 sudo apt-get autoremove --purge libmysqlclient18:i386

sudo apt-get autoremove --purge mysql-common

sudo apt-get autoremove --purge mysql-common

 sudo apt-get autoremove --purge mysql-apt-config

sudo apt-get autoremove --purge mysql-utilities

 sudo apt-get autoremove --purge mysql-workbench、

3清除数据

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

4.检查是否卸载干净

dpkg -l | grep mysql






猜你喜欢

转载自blog.csdn.net/smile12393/article/details/79565476