我不知何故弄乱了我的 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
文件都已删除,但仍无法正确安装。