Can';t(重新)安装MySQL 5.6
我有以下问题:我想再次安装MySQL(我已经删除了ibdata文件,所以我被迫再次安装)。我必须使用apt-get-purge-MySQL-server-MySQL-common删除MySQL。然后我使用apt get install mysql server再次安装它 安装开始时进行得很好,但后来我收到一个错误。在这个蓝色终端窗口中输入MySQL密码后,我收到一个错误 这也是一个蓝色的对话。以下是错误:Can';t(重新)安装MySQL 5.6,mysql,installation,debian,Mysql,Installation,Debian,我有以下问题:我想再次安装MySQL(我已经删除了ibdata文件,所以我被迫再次安装)。我必须使用apt-get-purge-MySQL-server-MySQL-common删除MySQL。然后我使用apt get install mysql server再次安装它 安装开始时进行得很好,但后来我收到一个错误。在这个蓝色终端窗口中输入MySQL密码后,我收到一个错误 这也是一个蓝色的对话。以下是错误: Package configuration ┌───────────────────
Package configuration
┌─────────────────────┤ Configuring mysql-server-5.6 ├──────────────────────┐
│ │
│ 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.6/README.Debian file for │
│ more information. │
│ │
│ <Ok> │
│ │
└───────────────────────────────────────────────────────────────────────────┘
有人能帮我吗?我绝望了:(
谢谢!您是否检查了清除是否删除了mysql数据文件?它可能会删除数据库服务器,但可能会保留数据库数据文件不变(例如,卸载microsoft word不会删除您计算机上的所有.doc文件)。如果它将db文件保留在那里,那么您的原始密码/数据/表/等仍然存在。以及我必须删除哪些文件和文件夹。我只使用rm-rf删除了/etc/mysql。mysql保存数据库文件的地方。可能是/var/lib/mysql的某个地方,但您必须检查my.ini/my.cnf以确认。/etc仅用于配置文件,数据文件不太可能在那里。我已经删除了/etc/mysql和/var/lib/mysql。安装工作正常,但我收到了以下警告:egrep:/etc/mysql/:没有这样的文件或目录[..]/etc/init.d/mysql:WARNING:/etc/mysql/my.cnf无法读取。请参阅自述。[warnn.gz.(警告)。[..]正在启动MySQL数据库服务器:mysqldNo目录,使用HOME=/.确定[info]登录,检查是否有需要升级、损坏或未完全关闭的表。。
[....] Starting MySQL database server: mysqldNo directory, logging in with HOME=/
[FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.6 (--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.6; however:
Package mysql-server-5.6 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.6
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)