我正在尝试从 Magento 版本迁移设置 1.9.2.2 to 2.0.0 CE

mage2\vendor\magento\data-migration-tool\etc\ce-to-ce\1.9.2.2\config.xml 内容

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="../../config.xsd">
    <steps mode="settings">
        <step title="Settings step">
            <integrity>Migration\Step\Settings</step>
            <data>Migration\Step\Stores</step>
        </step>
    </steps>
    <source version="1.9.2.2">
        <database host="localhost" name="magento9" user="root"/>
    </source>
    <destination version="2.0.2">
        <database host="localhost" name="mage2" user="root"/>
    </destination>
    <options>
        <crypt>
            <key><![CDATA[1bc968bd50b96ee18388feaed3bc1f1d]]></key>
        </crypt>
        <map_file>etc/ce-to-ce/1.9.2.2/map.xml</map_file>
        <settings_map_file>etc/ce-to-ce/1.9.2.2/settings.xml</settings_map_file>
    </options>
</config>

settings.xml 是从路径复制的 mage2\vendor\magento\data-migration-tool\etc\ce-to-ce

添加 settings.xml.distmap.xml.dist 在地点 mage2\vendor\magento\data-migration-tool\etc

在 CMD 提示符下我正在执行命令:

D:\xamp\htdocs\mage2\> php bin/magento migrate:settings {vendor\magento\data-migration-tool\etc\ce-to-ce\1.9.2.2\config.xml}

但它抛出异常

[Migration\Exception]
 Invalid config filename: {vendor/magento/data-migration-tool/etc/ce-to-ce/1
 .9.2.2/config.xml}
 migrate:settings [-r|--reset] config
  1. 如何成功运行命令来迁移设置?
  2. 我是否错过了迁移所需的任何步骤?

请指导。

参考链接 http://devdocs.magento.com/guides/v2.0/migration/migration-tool-install.html http://devdocs.magento.com/guides/v2.0/migration/migration-tool-configure.html http://devdocs.magento.com/guides/v2.0/migration/migration-migrate-settings.html

有帮助吗?

解决方案

用于从 Magento 1 到 Magento 2 的数据迁移。

您的第一步是设置迁移,

命令是:

php bin/magento migrate:settings /var/www/html/{{magento2}}/vendor/magento/data-migration-tool/etc/ce-to-ce/{{magento1 version}}/config.xml

全部 System -> Configuration 设置在设置迁移中迁移。设置迁移完成后,您需要检查Magento 2 Stores -> Configuration 环境。

在迁移设置中,从您的数据库表中, core_config_data 已影响。

所有 Magento 1 设置都迁移到 magento 2。

谢谢。

其他提示

更改为以下目录:

your-Magento2-root-dir/vendor/magento/data-migration-tool/etc/migration-edition/ce-or-version

如果你在 Linux 上运行这个命令 cp config.xml.dist config.xml 或在窗口上运行此命令 copy config.xml.dist config.xml

许可以下: CC-BY-SA归因
scroll top