完全删除MySQL Ubuntu 14.04 LTS [英] Completely Remove MySQL Ubuntu 14.04 LTS

查看:112
本文介绍了完全删除MySQL Ubuntu 14.04 LTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我莫名其妙地在我的Ubuntu服务器上弄乱了MySQL,无法修复它.我已经尝试了apt-get remove --purge mysql-serverapt-get autoremoveapt-get purge的每种组合,谷歌搜索了好几个小时,没事.

I somehow have messed up my MySQL on my Ubuntu server and cannot fix it. I have tried every single combination of apt-get remove --purge mysql-server, apt-get autoremove, apt-get purge, Googled for hours and nothing.

我真的放弃了.每次尝试重新安装时,都会出现错误.我受够了.我想删除服务器上与MySQL相关的每个文件.

I have literally given up. Every time I try to reinstall I get error. I've had enough. I want to remove every single file associated with MySQL on my server.

每次尝试重新安装时,都会出现此错误,这似乎很常见,但没有一个修复程序"对我有用.我需要清理所有MySQL系统.

I get this error every time I try to reinstall which seems to be common but not one "fix" has worked for me. I need to clean my system of everything MySQL.

Unable to set password for the MySQL "root" user                                                                                                        
An error occurred while setting the password for the MySQL administrative user. This may have happened because the account already has a password, or   
because of a communication problem with the MySQL server.                                                                                               
You should check the account's password after the package installation.                                                                                 
Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for more information.

请在我重新安装服务器之前,有人可以给我一组命令从我的系统中清除此不受欢迎的数据库.

Please can someone give me a set of command to purge this ungodly database from my system before I do a fresh install of the server.

Setting up mysql-server-5.5 (5.5.38-0ubuntu0.14.04.1) ...
140811 10:56:44 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.  
Processing triggers for libc-bin (2.19-0ubuntu6.1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

我确实尝试了一切.每个mysql文件都将被删除,并且仍然无法正确安装.

I have literally tried everything. Every single mysql file is removed and it still will not install properly.

推荐答案

要从Ubuntu中完全删除Mysql:

To Completly remove Mysql from Ubuntu :

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean

在此之后,如果您在重新安装时遇到问题,请尝试删除以下位置的Mysql文件:

after this, if you are having issues with re installing, Try to remove Mysql files in :

sudo rm -rf /var/lib/mysql

希望这会有所帮助.

这篇关于完全删除MySQL Ubuntu 14.04 LTS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆