0

好的,突然间 sql 在我的服务器上无法正常工作。当我运行sudo service mysql start它说:

Job for mysql.service failed because a fatal signal was delivered to the control process.
See "systemctl status mysql.service" and "journalctl -xe" for details.

当我运行systemctl status mysql.service它显示:

mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (start) since Wed 2021-04-14 03:08:17 UTC; 4s ago
Process: 12884 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 12892 (mysqld)
Status: "Server startup in progress"
Tasks: 2 (limit: 1136)
Memory: 2.7M
CGroup: /system.slice/mysql.service
         └─12892 [mysqld]

当我运行时journalctl -xe显示:

Apr 14 03:04:43 otzivio-ubuntu-s-1vcpu-1gb-intel-fra1-01 sudo[11492]: pam_unix(sudo:auth): 
authentication failure; logname=ashok uid=1000 euid=0 tty=/dev/pts/0 ruser=ashok rhost=  user=ashok
Apr 14 03:04:47 otzivio-ubuntu-s-1vcpu-1gb-intel-fra1-01 sudo[11492]: pam_unix(sudo:auth): 
conversation failed
Apr 14 03:04:47 otzivio-ubuntu-s-1vcpu-1gb-intel-fra1-01 sudo[11492]: pam_unix(sudo:auth): auth could 
not identify password for [ashok]
Apr 14 03:05:20 otzivio-ubuntu-s-1vcpu-1gb-intel-fra1-01 sudo[11748]: pam_unix(sudo:auth): 
authentication failure; logname=ashok uid=1000 euid=0 tty=/dev/pts/0 ruser=ashok rhost=  user=ashok

任何帮助表示赞赏

4

1 回答 1

0

首先运行“sudo apt-get install -f”来解决依赖关系,如果它不起作用,请检查您的配置文件、权限等。尝试查看是否发生了任何更新。

在最后一种情况下,当没有任何效果时。尝试通过“sudo apt-get autoremove mysql-server && apt-get install mysql-server”重新安装,但请确保您拥有所有备份操作系统配置文件和 sql...

我不知道它是否真的有帮助,但在我的工作中,我们从晚上到白天都会在服务器中收到一些更新,这些更新会拉低 kkk。在经历了一些糟糕的经历后,我每天都创建备份的备份...

于 2021-04-14T03:31:56.020 回答