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



我正在通过命令行在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

如何仅为我的Magento网站更改Mysql或MariaDB版本

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 Catalina版本10.15.7(19H1615(

Magento开源2.4.3-p1.zip

解决方案

nano供应商/magento/framework/Test/Unit/DB/Adapter/SqlVersionProviderTest.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,
],
];
}

nano-app/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>

下面是我如何找到解决方案的,谢谢,

您可以修改文件:vendor/magento/framework/Test/Unit/DB/Adapter/SqlVersionProviderTest.php(大约第109行(,并将MariaDB 10.5版本添加到阵列:

‘MariaDB-10.5’=>[[‘版本’=>‘10.5.8-MariaDB-1:10.5.8+maria~仿生’],"10.5。"],并更新文件:app/etc/di.xml(大约第1818行(:

^10.[2-5]。来自:

^10.[2-4]。现在我要注意的是,模式核心文件是不可取的,然而,如果你想让它在MariaDB 10.5上运行,那就是你可以解决的方法。

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

相关内容

  • 没有找到相关文章

最新更新