Magento 2-Migrationstool – Einstellungen von 1.9–2.0 CE migrieren
-
28-09-2020 - |
Frage
Ich versuche, Einstellungen von der Magento-Version zu migrieren 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
Inhalt
<?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
wird aus dem Pfad kopiert mage2\vendor\magento\data-migration-tool\etc\ce-to-ce
Hinzugefügt settings.xml.dist
Und map.xml.dist
vor Ort mage2\vendor\magento\data-migration-tool\etc
In der CMD-Eingabeaufforderung führe ich folgende Befehle aus:
D:\xamp\htdocs\mage2\> php bin/magento migrate:settings {vendor\magento\data-migration-tool\etc\ce-to-ce\1.9.2.2\config.xml}
Aber es löst eine Ausnahme aus
[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
- Wie führe ich den Befehl erfolgreich aus, um Einstellungen zu migrieren?
- Habe ich einen für die Migration erforderlichen Schritt verpasst?
Bitte leiten.
Referenzlinks 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
Lösung
Für die Datenmigration von Magento 1 nach Magento 2.
Ihr erster Schritt besteht darin, die Migration festzulegen.
Befehl ist:
php bin/magento migrate:settings /var/www/html/{{magento2}}/vendor/magento/data-migration-tool/etc/ce-to-ce/{{magento1 version}}/config.xml
Alle System -> Configuration
Einstellungen werden in Einstellung migrieren migriert.Nach Abschluss der Migration der Einstellungen müssen Sie Magento 2 einchecken Stores -> Configuration
Einstellung.
In der Migrationseinstellung aus Ihrer Datenbanktabelle: core_config_data
betroffen haben.
Alle Magento 1-Einstellungen werden auf Magento 2 migriert.
Danke.
Andere Tipps
Wechseln Sie in das folgende Verzeichnis:
your-Magento2-root-dir/vendor/magento/data-migration-tool/etc/migration-edition/ce-or-version
Wenn Sie Linux verwenden, führen Sie diesen Befehl aus cp config.xml.dist config.xml
oder führen Sie diesen Befehl im Fenster aus copy config.xml.dist config.xml