How to Migrate your Magento 1.x store to Magento 2.x

Updated 14 June 2017

Before you start migration,you need to know the server architecture of your Magento1 store. We must aware of the which versions of software our current server is running and which software we need to upgrade while migrating our store.

My Magento1 server configurations are as follows

Operating System : Ubuntu 14.04.02

Apache version : 2.4.7

Mysql version : 5.5.55

PHP version : 5.5.9

PHP modules :  mcrypt, curl, gd, pdo,mysql, mysqli, mcrypt, readline, pdo_mysql

Magento version : 1.9.3.2

This is the screen shot of my current Magento1  store

 

My Magento2 server configurations are as follows

Operating System : Ubuntu 14.04.02

Apache version : 2.4.7

Mysql version : 5.6.33

PHP version : 7.0.19

PHP modules :  opcache, pdo, xml, calendar, ctype, curl, dom, exif, fileinfo, ftp, gd, gettext, iconv, intl, json, mbstring, mcrypt, mysqli, pdo_mysql, phar, posix, readline, shmop, simplexml, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip

Magento version : 2.1.6

This is the screen shot of my new Magento2 store.

After migrating from Magento1 to Magento2 we will be able to view the products of the Magento1 store in our new Magento2 store.

Before you start migration, take backup of your Magento1 store files and database

Install Data Migration Tool

Data Migration Tool is a command-line interface for transferring data from Magento1 to Magento2.

Login to your new Magento2 store and goto your magento2 root directory. Suppose my root directory is /home/magento2/www


It will ask credential for repo.magento.com. After entering the credentials it will update the dependencies.

Data Migration Tool operates mainly 3 modes of operation

  1. It will migrate the store configurations to the new store
  2. It will migrate your database
  3. It will transfer incremental data updates while new data added to Magento1 storefront and admin panel while running previous migration modes

Migrate your store configuration

Both Magento1 and Magento2 are the community editions and my Magento1 version is 1.9.3.2. So I need to create config.xml according to this.


Configure your database connectivity. Open vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.3.2/config.xml and make the following changes.


In source filed give all the information about  Magento1 database  and in destination field give all the information about the Magento2 database.

Now, run the following command to migrate your settings.


This will migrate your configuration setting.

Migrate your Database

We have already config.xml file. We just need to run the command to migrate the data.


There may be some issue while migrating your database.

This issue occurs because some tables in the Magento1 are not present in Magento2. You need to check which tables or which fields are missing. Then you need to manually create the table and fields.

For example, compare these two tables

Magento1 store database

Magento2 store database

In Magento2 database two columns name and visibility are missing. So we need to add these two columns manually. After creating the other missing fields and tables we will be able to migrate the data.

If you want to skip some of the migrating steps, you can comment the steps in config.xml file

I want to skip the EAV step, so I have commented the lines for EAV step.

Migrate changes

Now it is time to migrate the additional data that added to the store since last time we migrated the data. The data may be customer order,reviews,transactions  and small changes in the backend.

To run the incremental migration, run the following command


It will run continuously until you press CTRL+C . When you think you have migrated the additional data, press CTRL+C and stop the process.

Copy media files

Now copy the media files from Magento1 store to Magento2 store


Post Migration Task

After migration put Magento1 in maintenance mode and stop backend tasks.

Start Magento2 cron jobs.

Flush Magento2 cache and reindex all the indexer.


Restart your apache/nginx services and make your new Magento2 store live.

After migration my new Magento2 store look like this

This is all about migrating your Magento1 store to Magento2. If you have any doubts regarding procedure you can ask me in the comment.

 

   IN CASE OF ANY QUERY, CONTACT US

Category(s) magento
author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project






    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home