mariadb Magento 2.4安装不支持当前的RDBS版本

bsxbgnwa  于 2022-11-08  发布在  其他
关注(0)|答案(3)|浏览(150)

我通过命令行在Vagrant上安装Magento 2.4这里是我得到的错误

Current version of RDBMS is not supported. Used Version: 10.5.8-MariaDB-1:10.5.8+maria~bionic. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)

这是我的家园的配置。yaml

ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/code
      to: /home/vagrant/code

sites:
    - map: realityla.io
      to: /home/vagrant/code/realityla
    - map: lhm.bb
      to: /home/vagrant/code/lhm
    - map: magento.ee
      to: /home/vagrant/code/magento

databases:
    - homestead
features:
    - mysql: true
    - mariadb: true
    - postgresql: false
    - ohmyzsh: false
    - webdriver: false

# ports:

# - send: 50000

# to: 5000

# - send: 7777

# to: 777

# protocol: udp

我怎样才能改变Mysql或MariaDB版本只为我的Magento网站

093gszye

093gszye1#

Current version of RDBMS is not supported. Used Version: 10.6.4-MariaDB. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)
  • PHP版本7.4.27*
  • nginx/1.21.5版本 *
  • 服务器版本:10.6.4-MariaDB -自制啤酒 *

macOS卡特琳娜版本10.15.7(19 H1615)
开放源代码2.4.3-p1.zip

解决方案

测试/单元/数据库/适配器/SqlVersionProvider测试. php

'MariaDB-10.6' => [
                ['version' => '10.6.4-MariaDB'],
                '10.6.'
            ],

在公共函数executeDataProvider()中添加以上行:最终函数将是这样的

/**
     * @return array
     */
    public function executeDataProvider(): array
    {
        return [
            'MariaDB-10.4' => [
                ['version' => '10.4.12-MariaDB-1:10.4.12+maria~bionic'],
                '10.4.'
            ],
            'MariaDB-10.2' => [
                ['version' => '10.2.31-MariaDB-1:10.2.31+maria~bionic'],
                '10.2.'
            ],
            'MariaDB-10.6' => [
                ['version' => '10.6.4-MariaDB'],
                '10.6.'
            ],
            'MySQL-5.7' => [
                ['version' => '5.7.29'],
                SqlVersionProvider::MYSQL_5_7_VERSION,
            ],
            'MySQL-8' => [
                ['version' => '8.0.19'],
                SqlVersionProvider::MYSQL_8_0_VERSION,
            ],
            'Percona' => [
                ['version' => '5.7.29-32'],
                SqlVersionProvider::MYSQL_5_7_VERSION,
            ],
        ];
    }

纳米应用程序/etc/di. xml
行号1856行将是这样的

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

变它像风箱

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

qlfbtfca2#

这是我找到解决办法的方法,谢谢,
您可以修改档案:将MariaDB 10.5版本添加到阵列中:
'MariaDB-10.5' =〉[['版本' =〉'10.5.8-MariaDB-1:10.5.8+maria~ bionic'],'10.5.' ],并更新文件:app/etc/di.xml(大约第1818行):
^10.[2-5].发件人:
^10.[2-4].现在我会注意到,模式核心文件是不可取的,但是如果你想让它在MariaDB 10.5上运行,这就是你可以解决它的方法。

uubf1zoe

uubf1zoe3#

1.作为临时修复,您可以应用此问题#31109中的拉取请求:https://github.com/magento/magento2/issues/31109
1.等待问题#31109解决,现在使用MariaDB-10.4

相关问题