Mysql 8 安装问题

标签 mysql

我正在尝试升级到 mysql 8,但得到以下信息。我不知道从这里该做什么。我没有看到太多关于要调查什么错误的信息。它说它已安装,但当我尝试启动它时,我遇到了相同的错误。

root@server:~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.15-1ubuntu18.04).
The following packages were automatically installed and are no longer required:
  libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-6 libfcgi-perl libhtml-template-perl
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-community-server (8.0.15-1ubuntu18.04) ...
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-03-27 08:15:16 EDT; 6ms ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 26739 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 26691 ExecStartPre=/usr/share/mysql-8.0/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
 Main PID: 26739 (code=exited, status=1/FAILURE)
   Status: "SERVER_BOOTING"

Mar 27 08:15:13 websvr systemd[1]: Starting MySQL Community Server...
Mar 27 08:15:16 websvr systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Mar 27 08:15:16 websvr systemd[1]: mysql.service: Failed with result 'exit-code'.
Mar 27 08:15:16 websvr systemd[1]: Failed to start MySQL Community Server.
dpkg: error processing package mysql-community-server (--configure):
 installed mysql-community-server package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-community-server (= 8.0.15-1ubuntu18.04); however:
  Package mysql-community-server 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.
                                                                                                        :
 mysql-community-server
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

最佳答案

搜索日志后发现问题。这只是配置文件中的一个错误变量

关于Mysql 8 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55377118/

相关文章:

mysql - MySQL中使用timediff函数计算12小时格式的时差

mysql - UPDATE 查询更改了没有 WHERE 子句但有 AND 子句的行 - 为什么?

php - 注册 php 在尝试注册时一直出现连接重置错误

php - PHP 中的 MySQL 出错,而 phpmyadmin 中的 MySQL 没有

php - 从两个相似的 MySQL 结果集创建数组时行为不一致

php - 真的在 CONCAT_WS 上苦苦挣扎......请帮助新手 :)

mysql - 解决复杂的 SQL 删除查询问题

java - Spring启动mysql sleep 连接

mysql - 如何在 where 子句后使用左连接

mysql - 插入或更新mysql表