时间:2022-12-06 01:47
ubuntu卸载mysql数据库的方法:
1.打开终端,卸载mysql输入命令:
sudoapt-getautoremove--purgemysql-serversudoapt-getautoremove--purgemysql-server-*
sudoapt-getautoremove--purgemysql-client
sudoapt-getautoremove--purgemysql-client-*
sudoapt-getremovemysql-common
2.输入命令删除数据:
dpkg-l|grep^rc|awk'{print$2}'|sudoxargsdpkg-P
3.输入命令删除目录:
sudorm-rf/etc/mysqlsudorm-rf/var/lib/mysql
4.输入命令清除残留:
sudoaptautoremovesudoaptautoreclean