Linux 阿里云用apt 命令重新卸载安装mysql

删除mysql前先删除一下/var/lib/mysql还有/etc/mysql

复制代码

sudorm/var/lib/mysql/-R

sudorm/etc/mysql/-R

sudoapt-getautoremovemysql*--purge

sudoapt-getremoveapparmor

sudoapt-getinstallmysql-servermysql-common