I want to install sample data after successful magento setup.

What will be the process of installing sample data after magento installation in magento



3 Answers 3


Install sample data before installing Magento, I have waste lot of time in this. Read official documentation to install sample data.

To import database via terminal use this command

mysql -u <db_user> -p <database> < sample.sql

mysql -u root -p  test < sample.sql

Magento1(or simply Magento) CE sample data must be installed before you install Magento CE. There is no way of installing it after Magento installation. Doing this after Magento installation would possibly overwrite a few tables which should be not. Please refer to https://devdocs.magento.com/guides/m1x/ce18-ee113/ht_magento-ce-sample.data.html


Sample data install after magento setup is easy, you have to copy folders of sample data and replace it with old folder of setup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.