You migration the latest magento 2 version . Mention the vertion for example data-migration-tool:2.3.3
composer config repositories.magento composer https://repo.magento.com
composer require magento/data-migration-tool:2.3.3
Edit config.xml file :-
Path: /vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.
<source>
<database host="localhost" name="rene_copy_db" user="root" password="nopass" />
</source>
<destination>
<database host="localhost" name="rene_m2_db" user="root" password="nopass" />
</destination>
Also added this value crypt_key (from magento 1.9):
<crypt_key>sony</crypt_key>
From version mention for example :/opensource-to-opensource/1.9.2.4/config.xml
Path: /vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4
map.xml
copy magento 1.9 media folder to magento 2 media folder (pub/)
php bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml
php bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml
composer config repositories.magento composer https://repo.magento.com
composer require magento/data-migration-tool:2.3.3
Edit config.xml file :-
Path: /vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.
<source>
<database host="localhost" name="rene_copy_db" user="root" password="nopass" />
</source>
<destination>
<database host="localhost" name="rene_m2_db" user="root" password="nopass" />
</destination>
Also added this value crypt_key (from magento 1.9):
<crypt_key>sony</crypt_key>
From version mention for example :/opensource-to-opensource/1.9.2.4/config.xml
Path: /vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4
map.xml
copy magento 1.9 media folder to magento 2 media folder (pub/)
php bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml
php bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml
"php bin/magento migrate:data -a vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml" --- Why use "-a"?
ReplyDelete