Migrate Data From Magento 1 to Magento 2
After spent lots of time on Migrate Data from Magento 1 to Magento 2 finally I have find a proper steps for that. So I just share those steps with you all. I hope it’ll help you to easily Migrate Data from Magento 1 to Magento 2.
For Migrate Data from Magento 1 To Magento 2 you need to follow below steps.
Before you start Migration process make sure Magento 1 (Your current site) and Magento 2 (Fresh installation) both are in a same server.
Note: For data security purpose we’ll suggest you to take your database and source backup before you perform following steps. You can perform all of these steps with your own risk this site is not responsible for any loss or damage.
First you need to open Command line in folder root of magento and run below commands one by one.
After complete composer update process run below command
composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool
After complete above command process run the below command but before run that command you just need to changes data-migration-tool:2.2.4 latest version.
composer require magento/data-migration-tool:2.2.4
After run above command it was copy migration tool at MagentoRoot/vendor/magento/data-migration-tool. Before run next command you need to change in config.xml file. For Change in config file first you need to know about you Magento 1 version and navigate to the folder same as Magento 1 current version. For Ex : Your current Magento 1 version 22.214.171.124 and its Community Edition then you need to go to the Magento2Root/vendor/magento/data-migration-tool/etc/ce-to-ce/126.96.36.199/config.xml.dist file and rename to config.xml and open and edit config.xml file.
Find following code on config file and change Magento 1 and Magento 2 host,database name, user and password..
<source> <database host="127.0.0.1" name="magento1" user="root" password="pass"/> </source> <destination> <database host="127.0.0.1" name="magento2" user="root" password="pass"/> </destination>
Also find another code on same file if you use prefix on your Magento 1 database
Also find another code on same file and add crypt_key of you Magento 1. You’ll get this key from your Magento 1 Root/app/code/etc/local.xml and find and copy that key from that file and paste it between MAGENTO_KEY as per following example.
After Made all the changes on config.xml file run following both command one by one.
php bin/magento migrate:settings vendor/magento/data-migration-tool/etc/ce-to-ce/188.8.131.52/config.xml php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/ce-to-ce/184.108.40.206/config.xml
You can use -r or –reset. -r or –reset is an optional argument that starts migration from the beginning. You can use this argument for testing migration.
If completed all this steps successfully then congratulation you are successfully Migrate data from Magento 1 to Magento 2.
After you have completed your migration and thoroughly tested your new Magento 2 site, perform the following tasks:
- Flush all Magento 2 cache types
- Reindex all Magento 2 indexers
After completed data migration incase if you want to do Delta migration then run following command on command line.
Delta is used for incremental migration. Incremental migration enables you to migrate only the changes made in Magento 1 since the last time you migrated data. These changes are:
- Data that customers added via storefront (created orders, reviews, changes in customer profiles, etc.)
All operations with orders in the Magento Admin panel
php bin/magento migrate:delta vendor/magento/data-migration-tool/etc/ce-to-ce/220.127.116.11/config.xml
Site Data Migration from Magento 1 to Magento 2 requires accuracy. If you are not comfortable with migration process, I would suggest you to take a professional help from a company like Dolphin, they have mastered the process of migration and have helped so many stores successfully convert from Magento 1 to Magento 2. If you want to take advantage of features in Magento 2 and need a professional help, please Contact Dolphin.
I hope you easy to understand this magento post with above steps and you are successfully Migrate data from Magento 1 to Magento 2. See you again in our next post. Bookmark it for your future reference. Do comment below if you have any other questions or doubts on Migrate Data from Magento 1 to Magento 2.
P.S. Do share this Post with your team.
Review other articles maybe it'll help you too.