Home / Meganto / Learn How to Install Magento with Sample Data

Learn How to Install Magento with Sample Data

/
/
/
799 Views

Many people find it easier to get used to Magento when there is some preinstalled data to begin with. This way people can see how exactly their categories and products are organized, how their store is configured, how their frontend would look like with some products on it, etc. Fortunately, Magento has a sample data package that can be installed and used with every new installation.

The Magento sample data package contains a MySQL dump with some sample products and CMS pages and a media folder containing the images for the sample products. The MySQL dump has to be imported into an empty database and the contents of the media should be uploaded to the media folder of your Magento installation.

Important: Sample data can be imported only into an empty database, you cannot import it into an existing Magento database because you will break your store! In other words, installing Magento sample data can be done only for new Magento installations, not for existing ones!

To install the sample data, you need to create a new MySQL database and add a user to it. thinknowledge customers can do this from the Databases section of the Pixie control panel. Note that this database will be later used for the whole Magento installation.

Next you need to download the Sample Data archive. You can do this from the download section of the Magento website.

Once you download the archive, extract it on your computer. All files from the Sample Data archive will be extracted to a folder called magento-sample-data-<version>, where <version> will be the latest sample data version, e.g. magento-sample-data-1.2.0. This folder will contain a MySQL dump called magento_sample_data_for_1.2.0.sql (the version will depend on the Sample Data version you downloaded) and a folder called media.

Let’s import the MySQL dump into the newly-created database. For this purpose you need to open phpMyAdmin and click on the database you just created. In our case the database is called demo_magento:

learn-how-to-install-magento-with-sample-data

To import the MySQL dump, you need to go to the Import section of phpMyAdmin by clicking the Import tab:

learn-how-to-install-magento-with-sample-data-1

Once there, click the Browse button and locate the magento_sample_data_for_1.2.0.sql file on your computer. Double-click it to set it for importing and then click the Go button on the bottom right part of the page to import it. Once the import completes, you will see a confirmation message and lots of tables in your database:

Learn How to Install Magento with Sample Data-2.png

Now that the sample MySQL dump has been imported, the only thing left is to copy the contents of the sample media folder to the media folder located in your Magento installation directory and proceed with the Magento installation. For detailed instructions on how to install Magento, please check our Magento installation tutorial

Note that in order for your sample products to show properly on your store’s frontend, you need to reindex your data through the Magento Index Management section in your admin area.

[amazon_link asins='B017ID54G6,B00C77U612,B017ID54G6,B00AUYYVZQ,B01LYSSFM7,8126554568,8131791882,1515233146,B01GSODGZC,1534954546' template='ProductCarousel' store='thinknowledge-21' marketplace='IN' link_id='c8bd129a-4dd0-11e7-80e2-3bd285adad9e']
  • Facebook
  • Twitter
  • Google+
  • Linkedin

Leave a Comment

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

0 Shares
+1
Tweet
Share
Share
Pin