繁体   English   中英

无法在 ubuntu 16.04 上安装 mysql-server 5.7

[英]Cannot install mysql-server 5.7 on ubuntu 16.04

请注意,我无法在 Ubuntu 上安装 mysql-server。 这就是我所看到的。

user@MyServer:~/Install$ sudo apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server is already the newest version (5.7.29-0ubuntu0.16.04.1).
The following NEW packages will be installed:
  mysql-client
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 10.1 kB of archives.
After this operation, 110 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 mysql-client all 5.7.29-0ubuntu0.16.04.1 [10.1 kB]
Fetched 10.1 kB in 0s (32.6 kB/s)       
Selecting previously unselected package mysql-client.
dpkg: warning: files list file for package 'apache2-bin' missing; assuming package has no files currently installed
(Reading database ... 365868 files and directories currently installed.)
Preparing to unpack .../mysql-client_5.7.29-0ubuntu0.16.04.1_all.deb ...
Unpacking mysql-client (5.7.29-0ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.29-0ubuntu0.16.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded 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
Setting up mysql-client (5.7.29-0ubuntu0.16.04.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

到目前为止,我一直在研究这些链接,但没有发现任何有用的东西。

https://computingforgeeks.com/how-to-solve-error-1524-hy000-plugin-unix_socket-is-not-loaded-mysql-error-on-debian-ubuntu/ Issues on reinstalling MySQL 5.7 server on Ubuntu 16.04 Issue在 ubuntu 16.04 上安装 mysql 服务器

有没有人有什么建议? TIA。

更新:

请注意,最后我决定使用 MariaDB,因为它在 Ubuntu 16.04 上安装和卸载没有问题,但是当我尝试安装和卸载 Z62A004B95946BB97541AFA471DCCA7 时出现一堆错误。

这看起来像您正在安装 MySQL 而不是以前的 MariaDB 安装。

不支持这种形式的安装。 建议从 MariaDB 转储数据(使用在数据目录上运行的 mariadb)(mysqldump)并手动移植 mysql。安装。

或者继续使用 MariaDB。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM