Skip to main content

Please check following steps for DATA MIGRATION FROM MAGENTO 1 to MAGENTO 2

Setup m1 database and setup m2 project

Before start migration please install fresh magento, Also put magento1 database and Magento2 database on same server

Stpe 1:

Install datamigration tool in fresh Magento
composer require magento/data-migration-tool:2.2.5

Step 2:

Go to to this Directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/"
Rename file config.xml.dist to config.xml (remove .dist from end)
Rename file map.xml.dist to map.xml (remove .dist from end)

Step 3:

Open config.xml (From this directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/config.xml")

Set database name, username and password on line number approx 100

//Magento 1 database access
<source>
    <database host="localhost" name="mad1live" user="root" password="mysql123" />
</source>

//Magento 2 database access
<destination>
    <database host="localhost" name="mad2migration" user="root" password="mysql123" />
</destination>

Remove .dist from map.xml.dist on this line no approx 107 
Code after edit : <map_file>etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/map.xml</map_file>

Copy crypt key from magento 1 /app/etc/local.xml and set in config.xml Example:

<options>
    ...
    <crypt_key>f5c82fa911418341aec329db9f798f81</crypt_key>
    ...
</options>

Step 4: Run folllwing commands one by one.

sudo php bin/magento migrate:settings -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo php bin/magento migrate:data -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo php bin/magento migrate:delta -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo is also not necessary in commands.

Please check following steps for DATA MIGRATION FROM MAGENTO 1 to MAGENTO 2

Setup m1 database and setup m2 project

Before start migration please install fresh magento, Also put magento1 database and Magento2 database on same server

Stpe 1:

Install datamigration tool in fresh Magento
composer require magento/data-migration-tool:2.2.5

Step 2:

Go to to this Directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/"
Rename file config.xml.dist to config.xml (remove .dist from end)
Rename file map.xml.dist to map.xml (remove .dist from end)

Step 3:

Open config.xml (From this directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/config.xml")

Set database name, username and password on line number approx 100

//Magento 1 database access
<source>
    <database host="localhost" name="mad1live" user="root" password="mysql123" />
</source>

//Magento 2 database access
<destination>
    <database host="localhost" name="mad2migration" user="root" password="mysql123" />
</destination>

Remove .dist from map.xml.dist on this line no approx 107 
Code after edit : <map_file>etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/map.xml</map_file>

Copy crypt key from magento 1 /app/etc/local.xml and set in config.xml Example:

<options>
    ...
    <crypt_key>f5c82fa911418341aec329db9f798f81</crypt_key>
    ...
</options>

Step 4: Run folllwing commands one by one.

sudo php bin/magento migrate:settings -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo php bin/magento migrate:data -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo bin/magento migrate:delta -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

Please check following steps for DATA MIGRATION FROM MAGENTO 1 to MAGENTO 2

Setup m1 database and setup m2 project

Before start migration please install fresh magento, Also put magento1 database and Magento2 database on same server

Stpe 1:

Install datamigration tool in fresh Magento
composer require magento/data-migration-tool:2.2.5

Step 2:

Go to to this Directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/"
Rename file config.xml.dist to config.xml (remove .dist from end)
Rename file map.xml.dist to map.xml (remove .dist from end)

Step 3:

Open config.xml (From this directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/config.xml")

Set database name, username and password on line number approx 100

//Magento 1 database access
<source>
    <database host="localhost" name="mad1live" user="root" password="mysql123" />
</source>

//Magento 2 database access
<destination>
    <database host="localhost" name="mad2migration" user="root" password="mysql123" />
</destination>

Remove .dist from map.xml.dist on this line no approx 107 
Code after edit : <map_file>etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/map.xml</map_file>

Copy crypt key from magento 1 /app/etc/local.xml and set in config.xml Example:

<options>
    ...
    <crypt_key>f5c82fa911418341aec329db9f798f81</crypt_key>
    ...
</options>

Step 4: Run folllwing commands one by one.

sudo php bin/magento migrate:settings -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo php bin/magento migrate:data -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo php bin/magento migrate:delta -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo is also not necessary in commands.

Source Link
Aasim Goriya
  • 5.5k
  • 2
  • 29
  • 53

Please check following steps for DATA MIGRATION FROM MAGENTO 1 to MAGENTO 2

Setup m1 database and setup m2 project

Before start migration please install fresh magento, Also put magento1 database and Magento2 database on same server

Stpe 1:

Install datamigration tool in fresh Magento
composer require magento/data-migration-tool:2.2.5

Step 2:

Go to to this Directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/"
Rename file config.xml.dist to config.xml (remove .dist from end)
Rename file map.xml.dist to map.xml (remove .dist from end)

Step 3:

Open config.xml (From this directory "{your_root_directory}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/config.xml")

Set database name, username and password on line number approx 100

//Magento 1 database access
<source>
    <database host="localhost" name="mad1live" user="root" password="mysql123" />
</source>

//Magento 2 database access
<destination>
    <database host="localhost" name="mad2migration" user="root" password="mysql123" />
</destination>

Remove .dist from map.xml.dist on this line no approx 107 
Code after edit : <map_file>etc/opensource-to-opensource/1.9.2.4(Magento 1 version)/map.xml</map_file>

Copy crypt key from magento 1 /app/etc/local.xml and set in config.xml Example:

<options>
    ...
    <crypt_key>f5c82fa911418341aec329db9f798f81</crypt_key>
    ...
</options>

Step 4: Run folllwing commands one by one.

sudo php bin/magento migrate:settings -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo php bin/magento migrate:data -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml

sudo bin/magento migrate:delta -r {{path_to_your_root_directory}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.4/config.xml