【问题标题】:Magento 2 error Current version of RDBMS is not supported. Used Version: 10.1.37-MariaDB. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)Magento 2 错误 不支持当前版本的 RDBMS。使用版本:10.1.37-MariaDB。支持的版本:MySQL-8、MySQL-5.7、MariaDB-(10.2-10.4)
【发布时间】:2020-11-09 13:28:37
【问题描述】:

我正在运行一个 magento 2.4 项目,但目前无法更新 mysql 版本。有什么办法可以跳过这个错误?

Magento 2 错误 当前版本的 RDBMS 不受支持。使用版本:10.1.37-MariaDB。支持的版本:MySQL-8、MySQL-5.7、MariaDB-(10.2-10.4)

【问题讨论】:

    标签: magento2


    【解决方案1】:

    如果您处于绑定状态,另一种解决方案。

    编辑文件app/etc/di.xml

    您可以在此处指定可接受的 MariaDB 版本 - 当前为 10.2-10.4

    允许 MariaDB 10.5 的示例

    <item name="MariaDB-(10.2-10.5)" xsi:type="string">^10\.[2-5]\.</item>
    

    【讨论】:

    • 非常适合我。知道运行 MariaDB 10.5 是否有问题?
    • @DavidStone 去年在所有服务器上似乎都很好
    【解决方案2】:

    是的,您可以尝试更改一个文件,但在项目运行时可能会出现一些问题。

    转到供应商/Magento/Framework/DB/Adapter/SqlVersionProvider.php

    更新函数getVersionString并替换行

    $sqlVersionOutput = $this->fetchSqlVersion($resource);

    $sqlVersionOutput = '10.2.37-MariaDB';

    这是临时解决方案。所以你应该考虑更新mysql版本。

    【讨论】:

      猜你喜欢
      • 2022-07-22
      • 1970-01-01
      • 1970-01-01
      • 2022-12-09
      • 2021-04-12
      • 2023-03-20
      • 2022-01-23
      • 2018-02-19
      • 2012-01-30
      相关资源
      最近更新 更多