cancel
Showing results for 
Search instead for 
Did you mean: 

How to have test data in Magento?

SOLVED

Re: How to have test data in Magento?

Thank you. I had errors when I ran the commands. I also posted the errors.

Now I am running in problem when I installed the tar.gzfile for Magento 2.3.2. The installation hangs at 49% completion. It seems there are no solutions for this error? Nobody offered any solution.

Re: How to have test data in Magento?

Hello @deepakdeshp ,

There are two common methods by which we can setup Magento 2 Sample Data in your store. Composer and Magento CLI. You can use Magento Cli method:

Step 1: Make sure that Magento CLI path is exported. From store’s webroot, Issue the following command if Magento CLI’s path is not exported.

 

export PATH=$PATH:$(pwd)/bin

Step 2: 

magento sampledata:deploy

Step 3: 

magento setup:upgrade

Please try the above steps and if you get any error please let us know the error, so that we can check that.

If it helps you, please give us kudos and accept it as solution.

Thank you.

 

 

 

Re: How to have test data in Magento?

I havent followed the method given by Sarvagya.

I downloaded the tar.gz file with data and executed 

create database magento;
create user magento IDENTIFIED BY 'magento';
GRANT ALL ON magento.* TO magento@localhost IDENTIFIED BY 'magento';
flush privileges;

I installed using the web method and this time the install with data was successful.

 

Re: How to have test data in Magento?

 

Great Smiley Happy

Re: How to have test data in Magento?

Thank you.

Re: How to have test data in Magento?

Hi @deepakdeshp,

The error which you was facing that your installation stucked on 49% is due to memory limit issue.

You need to increase php memory limit atleast 4096M in php.ini file.

Or you can add following lines in index.php of your root folder.

ini_set("memory_limit","-1");

It is great that you have already fixed this issue different method, but it will help you in case you need same process on different instance.

I hope it will help you in future