mariadb 服务器无法启动,模块化依赖问题?

mariadb 服务器无法启动,模块化依赖问题?

我正在尝试在 ec2 容器中的 rhel 实例上创建 maridb 表,但每次我尝试启动 mariadb 时都会得到以下信息:

Redirecting to /bin/systemctl start mariadb-server.service Failed to start mariadb-server.service: Unit mariadb-server.service not found.

我已经寻找这个问题的答案一两天了,但没有运气。我也最终遇到了这些模块化依赖问题,但老实说我不知道​​这意味着什么。我对 Linux 的学习还很陌生。

[root@ip-172-31-40-7 html]# yum list installed | grep mariadb Modular dependency problems:

Problem 1: conflicting requests - nothing provides module(perl:5.26) needed by module perl-DBD-MySQL:4.046:8010020190322121447:073fa5fe-0.x86_64 Problem 2: conflicting requests - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020190322130042:16b3ab4d-0.x86_64 mariadb.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms
mariadb-backup.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms
mariadb-common.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms
mariadb-connector-c.x86_64 3.0.7-1.el8 @rhel-8-appstream-rhui-rpms
mariadb-connector-c-config.noarch 3.0.7-1.el8 @rhel-8-appstream-rhui-rpms
mariadb-errmsg.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms
mariadb-gssapi-server.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms
mariadb-server.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms
mariadb-server-utils.x86_64 3:10.3.17-1.module+el8.1.0+3974+90eded84 @rhel-8-appstream-rhui-rpms

我还尝试删除软件包、清理并重新安装,但没有成功。

我仍在积极寻找解决方案,任何帮助将不胜感激。

答案1

MariaDB 是 MySQL 的直接替代品,我认为这perl-DBD-MySQL可能与服务器上安装的 MySQL 相关。如果您不需要它,也许您应该将其删除。

答案2

我删除了 mysql 软件包并运行了以下命令:它立即启动了!

[root@myhost]# systemctl start mariadb.service
[root@myhost]# systemctl status mariadb.service
● mariadb.service - MariaDB 10.3 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2020-02-28 20:35:07 UTC; 19s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 8981 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS)
  Process: 8911 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mariadb.service (code=exited, status=0/SUCCESS)
  Process: 8887 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
 Main PID: 8949 (mysqld)
   Status: "Taking your SQL requests now..."
    Tasks: 30 (limit: 4998)
   Memory: 76.3M
   CGroup: /system.slice/mariadb.service
           └─8949 /usr/libexec/mysqld --basedir=/usr

相关内容