gpt4 book ai didi

Mysql 8 安装问题

转载 作者:行者123 更新时间:2023-11-29 16:09:39 30 4
gpt4 key购买 nike

我正在尝试升级到 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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com