我在我的Ubuntu服务器上搞砸了MySQL,无法修复。我已经尝试了每种组合的apt-get remove --purge mysql-server
、apt-get autoremove
、apt-get purge
,并且在Google上搜索了几个小时,但没有任何进展。
我已经彻底放弃了。每次尝试重新安装时都会出现错误。我受够了。我想删除与我的服务器上的MySQL相关的每个文件。
每次尝试重新安装时都会出现这个错误,似乎很常见,但没有一个“解决方法”对我有效。我需要清除系统中与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.
请问有没有人能提供一组命令,在我重新安装服务器之前将这个糟糕的数据库从我的系统中清除?
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
文件都被删除了,但它仍然无法正确安装。