所以我试图在 ubuntu 21.04 上启动 mysql 服务,但不是启动 mysql.service,而是控制进程退出并显示错误代码
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-01-02 05:33:37 WIB; 2s ago
Process: 5365 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)
Jan 02 05:33:37 Lucid systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Jan 02 05:33:37 Lucid systemd[1]: Stopped MySQL Community Server.
Jan 02 05:33:37 Lucid systemd[1]: mysql.service: Start request repeated too quickly.
Jan 02 05:33:37 Lucid systemd[1]: mysql.service: Failed with result 'exit-code'.
Jan 02 05:33:37 Lucid systemd[1]: Failed to start MySQL Community Server.
每次我尝试启动服务时都会发生这种情况