cancel
Showing results for 
Search instead for 
Did you mean: 

Install Sample Data for magento 2 beta version

SOLVED

Install Sample Data for magento 2 beta version

Hi

I know hoe to install sample database in magento 2 but problem is lattest releas of beta version i dont know version of sample data to competible with beta magento 2 version.

 

Thank You

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Install Sample Data for magento 2 beta version

I done it my self this is new version composer.json file.

 

 

{
"name": "magento/magento2ce",
"description": "Magento 2 (Community Edition)",
"type": "project",
"version": "0.74.0-beta16",
"minimum-stability": "beta",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": "~5.5.0|~5.6.0",
"zendframework/zend-stdlib": "2.4.0",
"zendframework/zend-code": "2.4.0",
"zendframework/zend-server": "2.4.0",
"zendframework/zend-soap": "2.4.0",
"zendframework/zend-uri": "2.4.0",
"zendframework/zend-validator": "2.4.0",
"zendframework/zend-console": "2.4.0",
"zendframework/zend-modulemanager": "2.4.0",
"zendframework/zend-mvc": "2.4.0",
"zendframework/zend-text": "2.4.0",
"zendframework/zend-i18n": "2.4.0",
"zendframework/zend-eventmanager": "2.4.0",
"zendframework/zend-view": "2.4.0",
"zendframework/zend-servicemanager": "2.4.0",
"zendframework/zend-json": "2.4.0",
"zendframework/zend-config": "2.4.0",
"zendframework/zend-form": "2.4.0",
"zendframework/zend-di": "2.4.0",
"zendframework/zend-serializer": "2.4.0",
"zendframework/zend-log": "2.4.0",
"zendframework/zend-http": "2.4.0",
"magento/zendframework1": "1.12.13",
"composer/composer": "1.0.0-alpha10",
"monolog/monolog": "1.11.0",
"oyejorge/less.php": "1.7.0.3",
"pelago/emogrifier": "0.1.1",
"tubalmartin/cssmin": "2.4.8-p4",
"magento/magento-composer-installer": "*",
"symfony/console": "~2.3 <2.7",
"magento/sample-data": "0.74.0-beta16"
},
"require-dev": {
"phpunit/phpunit": "4.1.0",
"squizlabs/php_codesniffer": "1.5.3",
"phpmd/phpmd": "@stable",
"pdepend/pdepend": "2.0.6",
"lib-libxml": "*",
"ext-ctype": "*",
"ext-gd": "*",
"ext-spl": "*",
"ext-dom": "*",
"ext-simplexml": "*",
"ext-mcrypt": "*",
"ext-hash": "*",
"ext-curl": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-xsl": "*",
"ext-mbstring": "*",
"sjparkinson/static-review": "~4.1",
"fabpot/php-cs-fixer": "~1.2",
"lusitanian/oauth": "~0.3"
},
"replace": {
"magento/module-admin-notification": "self.version",
"magento/module-advanced-pricing-import-export": "self.version",
"magento/module-authorization": "self.version",
"magento/module-backend": "self.version",
"magento/module-backup": "self.version",
"magento/module-bundle": "self.version",
"magento/module-bundle-import-export": "self.version",
"magento/module-cache-invalidate": "self.version",
"magento/module-captcha": "self.version",
"magento/module-catalog": "self.version",
"magento/module-catalog-import-export": "self.version",
"magento/module-catalog-inventory": "self.version",
"magento/module-catalog-rule": "self.version",
"magento/module-catalog-search": "self.version",
"magento/module-catalog-url-rewrite": "self.version",
"magento/module-catalog-widget": "self.version",
"magento/module-checkout": "self.version",
"magento/module-checkout-agreements": "self.version",
"magento/module-cms": "self.version",
"magento/module-cms-url-rewrite": "self.version",
"magento/module-config": "self.version",
"magento/module-configurable-import-export": "self.version",
"magento/module-configurable-product": "self.version",
"magento/module-contact": "self.version",
"magento/module-cookie": "self.version",
"magento/module-cron": "self.version",
"magento/module-currency-symbol": "self.version",
"magento/module-customer": "self.version",
"magento/module-customer-import-export": "self.version",
"magento/module-design-editor": "self.version",
"magento/module-developer": "self.version",
"magento/module-dhl": "self.version",
"magento/module-directory": "self.version",
"magento/module-downloadable": "self.version",
"magento/module-eav": "self.version",
"magento/module-email": "self.version",
"magento/module-fedex": "self.version",
"magento/module-gift-message": "self.version",
"magento/module-google-adwords": "self.version",
"magento/module-google-analytics": "self.version",
"magento/module-google-optimizer": "self.version",
"magento/module-google-shopping": "self.version",
"magento/module-grouped-import-export": "self.version",
"magento/module-grouped-product": "self.version",
"magento/module-import-export": "self.version",
"magento/module-indexer": "self.version",
"magento/module-integration": "self.version",
"magento/module-layered-navigation": "self.version",
"magento/module-log": "self.version",
"magento/module-media-storage": "self.version",
"magento/module-msrp": "self.version",
"magento/module-multishipping": "self.version",
"magento/module-newsletter": "self.version",
"magento/module-offline-payments": "self.version",
"magento/module-offline-shipping": "self.version",
"magento/module-page-cache": "self.version",
"magento/module-payment": "self.version",
"magento/module-paypal": "self.version",
"magento/module-persistent": "self.version",
"magento/module-product-alert": "self.version",
"magento/module-quote": "self.version",
"magento/module-reports": "self.version",
"magento/module-require-js": "self.version",
"magento/module-review": "self.version",
"magento/module-rss": "self.version",
"magento/module-rule": "self.version",
"magento/module-sales": "self.version",
"magento/module-sales-rule": "self.version",
"magento/module-sales-sequence": "self.version",
"magento/module-search": "self.version",
"magento/module-send-friend": "self.version",
"magento/module-shipping": "self.version",
"magento/module-sitemap": "self.version",
"magento/module-store": "self.version",
"magento/module-tax": "self.version",
"magento/module-tax-import-export": "self.version",
"magento/module-theme": "self.version",
"magento/module-translation": "self.version",
"magento/module-ui": "self.version",
"magento/module-ups": "self.version",
"magento/module-url-rewrite": "self.version",
"magento/module-user": "self.version",
"magento/module-usps": "self.version",
"magento/module-variable": "self.version",
"magento/module-version": "self.version",
"magento/module-webapi": "self.version",
"magento/module-weee": "self.version",
"magento/module-widget": "self.version",
"magento/module-wishlist": "self.version",
"magento/theme-adminhtml-backend": "self.version",
"magento/theme-frontend-blank": "self.version",
"magento/theme-frontend-luma": "self.version",
"magento/language-de_de": "self.version",
"magento/language-en_us": "self.version",
"magento/language-es_es": "self.version",
"magento/language-fr_fr": "self.version",
"magento/language-nl_nl": "self.version",
"magento/language-pt_br": "self.version",
"magento/language-zh_cn": "self.version",
"magento/framework": "self.version",
"trentrichardson/jquery-timepicker-addon": "1.4.3",
"colinmollenhour/cache-backend-redis": "dev-master#193d377b7fb2e88595578b282fa01a62d1185abc",
"colinmollenhour/credis": "dev-master#f07bbfd4117294f462f0fb19c49221d350bf396f",
"linkorb/jsmin-php": "1.1.2",
"phpseclib/phpseclib": "0.2.1",
"components/jquery": "1.11.0",
"blueimp/jquery-file-upload": "5.6.14",
"components/jqueryui": "1.10.4",
"twbs/bootstrap": "3.1.0",
"tinymce/tinymce": "3.4.7"
},
"extra": {
"component_paths": {
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
"colinmollenhour/cache-backend-redis": "lib/internal/Cm/Cache/Backend/Redis.php",
"colinmollenhour/credis": "lib/internal/Credis",
"linkorb/jsmin-php": "lib/internal/JSMin",
"phpseclib/phpseclib": "lib/internal/phpseclib",
"components/jquery": [
"lib/web/jquery.js",
"lib/web/jquery/jquery.min.js",
"lib/web/jquery/jquery-migrate.js",
"lib/web/jquery/jquery-migrate.min.js"
],
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
"components/jqueryui": [
"lib/web/jquery/jquery-ui.js",
"lib/web/jquery/jquery-ui.min.js"
],
"twbs/bootstrap": [
"lib/web/jquery/jquery.tabs.js"
],
"tinymce/tinymce": "lib/web/tiny_mce"
}
},
"config": {
"use-include-path": true
},
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/"
}
},
"autoload-dev": {
"psr-4": {
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"minimum-stability": "alpha",
"prefer-stable": true,
"repositories": {
"magento": {
"type": "composer",
"url": "http://packages.magento.com"
}
}
}

View solution in original post

4 REPLIES 4

Re: Install Sample Data for magento 2 beta version

Hi @khamarpratik, have you read through the guide on how to install sample data? http://devdocs.magento.com/guides/v2.0/install-gde/install/sample-data.html

--

Developer Relations, Adobe Experience Cloud
Problem solved? Click Accept as Solution!
Still stuck? Check out our documentation: https://magento.com/resources/technical

Re: Install Sample Data for magento 2 beta version

Yes i read document 

i have added code in my composer.json  file 

 

"repositories": [
{
"type": "composer",
"url": "http://packages.magento.com/"
}
],

 

"require": {

...

...

 

"magento/sample-data": "0.42.0-beta1",
"magento/sample-data-media": "0.42.0-beta1"

 },

 

is that any thing wrong i mean this sample data working on old magento 2 version number "0.42.0-beta1" but not working in lattest realese magento beta.

 

Thank You

Re: Install Sample Data for magento 2 beta version

I done it my self this is new version composer.json file.

 

 

{
"name": "magento/magento2ce",
"description": "Magento 2 (Community Edition)",
"type": "project",
"version": "0.74.0-beta16",
"minimum-stability": "beta",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": "~5.5.0|~5.6.0",
"zendframework/zend-stdlib": "2.4.0",
"zendframework/zend-code": "2.4.0",
"zendframework/zend-server": "2.4.0",
"zendframework/zend-soap": "2.4.0",
"zendframework/zend-uri": "2.4.0",
"zendframework/zend-validator": "2.4.0",
"zendframework/zend-console": "2.4.0",
"zendframework/zend-modulemanager": "2.4.0",
"zendframework/zend-mvc": "2.4.0",
"zendframework/zend-text": "2.4.0",
"zendframework/zend-i18n": "2.4.0",
"zendframework/zend-eventmanager": "2.4.0",
"zendframework/zend-view": "2.4.0",
"zendframework/zend-servicemanager": "2.4.0",
"zendframework/zend-json": "2.4.0",
"zendframework/zend-config": "2.4.0",
"zendframework/zend-form": "2.4.0",
"zendframework/zend-di": "2.4.0",
"zendframework/zend-serializer": "2.4.0",
"zendframework/zend-log": "2.4.0",
"zendframework/zend-http": "2.4.0",
"magento/zendframework1": "1.12.13",
"composer/composer": "1.0.0-alpha10",
"monolog/monolog": "1.11.0",
"oyejorge/less.php": "1.7.0.3",
"pelago/emogrifier": "0.1.1",
"tubalmartin/cssmin": "2.4.8-p4",
"magento/magento-composer-installer": "*",
"symfony/console": "~2.3 <2.7",
"magento/sample-data": "0.74.0-beta16"
},
"require-dev": {
"phpunit/phpunit": "4.1.0",
"squizlabs/php_codesniffer": "1.5.3",
"phpmd/phpmd": "@stable",
"pdepend/pdepend": "2.0.6",
"lib-libxml": "*",
"ext-ctype": "*",
"ext-gd": "*",
"ext-spl": "*",
"ext-dom": "*",
"ext-simplexml": "*",
"ext-mcrypt": "*",
"ext-hash": "*",
"ext-curl": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-xsl": "*",
"ext-mbstring": "*",
"sjparkinson/static-review": "~4.1",
"fabpot/php-cs-fixer": "~1.2",
"lusitanian/oauth": "~0.3"
},
"replace": {
"magento/module-admin-notification": "self.version",
"magento/module-advanced-pricing-import-export": "self.version",
"magento/module-authorization": "self.version",
"magento/module-backend": "self.version",
"magento/module-backup": "self.version",
"magento/module-bundle": "self.version",
"magento/module-bundle-import-export": "self.version",
"magento/module-cache-invalidate": "self.version",
"magento/module-captcha": "self.version",
"magento/module-catalog": "self.version",
"magento/module-catalog-import-export": "self.version",
"magento/module-catalog-inventory": "self.version",
"magento/module-catalog-rule": "self.version",
"magento/module-catalog-search": "self.version",
"magento/module-catalog-url-rewrite": "self.version",
"magento/module-catalog-widget": "self.version",
"magento/module-checkout": "self.version",
"magento/module-checkout-agreements": "self.version",
"magento/module-cms": "self.version",
"magento/module-cms-url-rewrite": "self.version",
"magento/module-config": "self.version",
"magento/module-configurable-import-export": "self.version",
"magento/module-configurable-product": "self.version",
"magento/module-contact": "self.version",
"magento/module-cookie": "self.version",
"magento/module-cron": "self.version",
"magento/module-currency-symbol": "self.version",
"magento/module-customer": "self.version",
"magento/module-customer-import-export": "self.version",
"magento/module-design-editor": "self.version",
"magento/module-developer": "self.version",
"magento/module-dhl": "self.version",
"magento/module-directory": "self.version",
"magento/module-downloadable": "self.version",
"magento/module-eav": "self.version",
"magento/module-email": "self.version",
"magento/module-fedex": "self.version",
"magento/module-gift-message": "self.version",
"magento/module-google-adwords": "self.version",
"magento/module-google-analytics": "self.version",
"magento/module-google-optimizer": "self.version",
"magento/module-google-shopping": "self.version",
"magento/module-grouped-import-export": "self.version",
"magento/module-grouped-product": "self.version",
"magento/module-import-export": "self.version",
"magento/module-indexer": "self.version",
"magento/module-integration": "self.version",
"magento/module-layered-navigation": "self.version",
"magento/module-log": "self.version",
"magento/module-media-storage": "self.version",
"magento/module-msrp": "self.version",
"magento/module-multishipping": "self.version",
"magento/module-newsletter": "self.version",
"magento/module-offline-payments": "self.version",
"magento/module-offline-shipping": "self.version",
"magento/module-page-cache": "self.version",
"magento/module-payment": "self.version",
"magento/module-paypal": "self.version",
"magento/module-persistent": "self.version",
"magento/module-product-alert": "self.version",
"magento/module-quote": "self.version",
"magento/module-reports": "self.version",
"magento/module-require-js": "self.version",
"magento/module-review": "self.version",
"magento/module-rss": "self.version",
"magento/module-rule": "self.version",
"magento/module-sales": "self.version",
"magento/module-sales-rule": "self.version",
"magento/module-sales-sequence": "self.version",
"magento/module-search": "self.version",
"magento/module-send-friend": "self.version",
"magento/module-shipping": "self.version",
"magento/module-sitemap": "self.version",
"magento/module-store": "self.version",
"magento/module-tax": "self.version",
"magento/module-tax-import-export": "self.version",
"magento/module-theme": "self.version",
"magento/module-translation": "self.version",
"magento/module-ui": "self.version",
"magento/module-ups": "self.version",
"magento/module-url-rewrite": "self.version",
"magento/module-user": "self.version",
"magento/module-usps": "self.version",
"magento/module-variable": "self.version",
"magento/module-version": "self.version",
"magento/module-webapi": "self.version",
"magento/module-weee": "self.version",
"magento/module-widget": "self.version",
"magento/module-wishlist": "self.version",
"magento/theme-adminhtml-backend": "self.version",
"magento/theme-frontend-blank": "self.version",
"magento/theme-frontend-luma": "self.version",
"magento/language-de_de": "self.version",
"magento/language-en_us": "self.version",
"magento/language-es_es": "self.version",
"magento/language-fr_fr": "self.version",
"magento/language-nl_nl": "self.version",
"magento/language-pt_br": "self.version",
"magento/language-zh_cn": "self.version",
"magento/framework": "self.version",
"trentrichardson/jquery-timepicker-addon": "1.4.3",
"colinmollenhour/cache-backend-redis": "dev-master#193d377b7fb2e88595578b282fa01a62d1185abc",
"colinmollenhour/credis": "dev-master#f07bbfd4117294f462f0fb19c49221d350bf396f",
"linkorb/jsmin-php": "1.1.2",
"phpseclib/phpseclib": "0.2.1",
"components/jquery": "1.11.0",
"blueimp/jquery-file-upload": "5.6.14",
"components/jqueryui": "1.10.4",
"twbs/bootstrap": "3.1.0",
"tinymce/tinymce": "3.4.7"
},
"extra": {
"component_paths": {
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
"colinmollenhour/cache-backend-redis": "lib/internal/Cm/Cache/Backend/Redis.php",
"colinmollenhour/credis": "lib/internal/Credis",
"linkorb/jsmin-php": "lib/internal/JSMin",
"phpseclib/phpseclib": "lib/internal/phpseclib",
"components/jquery": [
"lib/web/jquery.js",
"lib/web/jquery/jquery.min.js",
"lib/web/jquery/jquery-migrate.js",
"lib/web/jquery/jquery-migrate.min.js"
],
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
"components/jqueryui": [
"lib/web/jquery/jquery-ui.js",
"lib/web/jquery/jquery-ui.min.js"
],
"twbs/bootstrap": [
"lib/web/jquery/jquery.tabs.js"
],
"tinymce/tinymce": "lib/web/tiny_mce"
}
},
"config": {
"use-include-path": true
},
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/"
}
},
"autoload-dev": {
"psr-4": {
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"minimum-stability": "alpha",
"prefer-stable": true,
"repositories": {
"magento": {
"type": "composer",
"url": "http://packages.magento.com"
}
}
}

Re: Install Sample Data for magento 2 beta version

You're using the old sample data composer version. Update it to this:

 

"magento/sample-data": "~1.0.0-beta"

Also no need to change mininum-stability to alpha anymore, as everything hit 1.0.0-beta a week or so ago. You also don't want to copy/paste someone elses composer.json file, there is too much room for error if you do that, as something there might be specific to their store.