数据库
首页 > 数据库> > 从Ubuntu 16.04卸载MySQL

从Ubuntu 16.04卸载MySQL

作者:互联网

参见英文答案 > How do I uninstall MySQL?                                    8个
我试图从Ubuntu 16.04 LTS完全卸载MySQL,但我面临一个问题:

The following packages have unmet dependencies:
mariadb-client-10.0 : Depends: libdbd-mysql-perl (>= 1.2202) but it is not going to be installed
mariadb-client-core-10.0 : Depends: mariadb-common (>= 10.0.24-7) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我也尝试卸载Mariadb,但我总是遇到同样的问题.
任何的想法 !!

解决方法:

我最终完全卸载MySQL,并使用以下行重新安装它:

删除与MySQL相关的所有文件

sudo apt-get purge mysql*

sudo apt-get autoremove

sudo apt-get autoclean

然后升级我的发行版

sudo apt-get dist-upgrade

然后安装MySQL

sudo apt-get install mysql-server

就这样.

标签:mysql,uninstall,16-04
来源: https://codeday.me/bug/20190807/1610532.html