无法在 Ubuntu 21.04 上安装 mysql

无法在 Ubuntu 21.04 上安装 mysql

我正在全新安装 Ubuntu 21.04 或 Dell R610 服务器。

我最近安装了 mariadb 和一些 Wordpress 网站。由于我将在此处介绍的错误,我不得不删除、清除并自动删除 mariadb。此时,我开始全新安装 mysql-server。

我按照以下步骤安装 mysql-server

{lsb-发布-a}

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.04
Release:    21.04
Codename:   hirsute

{须藤apt更新} {须藤apt安装mysql服务器}

然后我检查了安装。{sudo systemctl status mysql}

● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)
     Active: inactive (dead)

Sep 13 23:30:57 xxx-R610 systemd[1]: Starting MySQL Community Server...
Sep 13 23:30:57 xxx-R610 mysql-systemd-start[2426]: MySQL has been frozen to prevent damage to your system. Please see >
Sep 13 23:30:57 xxx-R610 systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Sep 13 23:30:57 xxx-R610 systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 13 23:30:57 xxx-R610 systemd[1]: Failed to start MySQL Community Server.
Sep 13 23:30:57 xxx-R610 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Sep 13 23:30:57 xxx-R610 systemd[1]: Stopped MySQL Community Server.
Sep 13 23:30:57 xxx-R610 systemd[1]: mysql.service: Start request repeated too quickly.
Sep 13 23:30:57 xxx-R610 systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 13 23:30:57 xxx-R610 systemd[1]: Failed to start MySQL Community Server.

我尝试启动 MySQL 来获取日志 -xe 输出。

{sudo systemctl 启动 mysql}

journal -xe 输出为:

Automatic restarting of the unit mysql.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Sep 14 08:23:43 xxx-R610 systemd[1]: Stopped MySQL Community Server.
░░ Subject: A stop job for unit mysql.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A stop job for unit mysql.service has finished.
░░ 
░░ The job identifier is 16459 and the job result is done.
Sep 14 08:23:43 xxx-R610 systemd[1]: mysql.service: Start request repeated too quickly.
Sep 14 08:23:43 xxx-R610 systemd[1]: mysql.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit mysql.service has entered the 'failed' state with result 'exit-code'.
Sep 14 08:23:43 xxx-R610 systemd[1]: Failed to start MySQL Community Server.
░░ Subject: A start job for unit mysql.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support

有两句话我不明白,而且在网上搜索也没有找到太多信息。

Sep 14 08:23:43 xxx-R610 systemd[1]: mysql.service: Start request repeated too quickly.
Sep 14 08:23:43 xxx-R610 systemd[1]: mysql.service: Failed with result 'exit-code'.

这是一个全新的版本。所以这应该不是问题……除非这是开发问题,并且 ubuntu 21.04 还不能与 MySQL 或 MariaDB 兼容。

任何帮助都非常好。我的下一次尝试将需要将 ubuntu 降级到 20.04。

相关内容