Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--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.7; however:
Package mysql-server-5.7 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.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试安装 mysql 时出现上述错误。我尝试按照以下步骤进行安装:
- sudo apt-get remove --purge mysql*
- sudo apt-get purge mysql*
- sudo apt-get 自动删除
- sudo apt-get 自动清理
- sudo apt-get 删除 dbconfig-mysql
- sudo apt-get dist-upgrade
- sudo apt-get 安装 mysql 服务器
这些步骤来自这里
我是否遗漏了什么步骤?
答案1
正如我所见,您有依赖性问题。但这是您第一次在该终端中安装 mysql 吗?
出现错误后,在终端中输入: - sudo apt install -f