Magento2

Aus Vosp.info
Version vom 22. Juli 2016, 08:10 Uhr von V (Diskussion | Beiträge) (Migrationsbeispiel 1.9.1.0 nach 2.1.0)
Wechseln zu:Navigation, Suche

install magento 2.1.0 (Git or Composer)

cd /var/www

1 A) git

 
git clone https://github.com/magento/magento2.git installdir
cd installdir
git checkout tags/2.1.0 -b 2.1.0
composer install

OR 1 B) composer

 

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.1.0 installdir


2) Basic installation

 
 bin/magento  setup:install --base-url=https://test.domain.tld --db-host=localhost --db-name=testname --db-user=root --db-password=xxxx --admin-firstname=testname --admin-lastname=testname --admin-email=test@domain.tld --admin-user=test --admin-password=TESTPWXXX --language=de_DE --currency=EUR --timezone=Europe/Berlin --use-rewrites=1 --backend-frontname=namebackend --cleanup-database


Migrationsbeispiel 1.9.1.0 nach 2.1.0

chown nonadminuser installdir/ -R
su nonadminuser (and give him write rights)
config repositories.data-migration-tool git https://github.com/magento/data-migration-tool
composer require magento/data-migration-tool:2.1.0
exit
chown www-data:www-data installdir/ -R
vim vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.1.0/config.xml (after copy config.xml.dist => config.xml )
     < source>
        <database host="localhost" name="olddb" user="root" password="passwd"/>
    < /source>
    <destination>
        <database host="localhost" name="newdb" user="root" password="passwd"/>
    </destination>
    <options>
        <map_file>etc/ce-to-ce/1.9.1.0/map.xml</map_file>
        <eav_map_file>etc/ce-to-ce/map-eav.xml</eav_map_file>
<source>

 vim vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.1.0/map.xml (after copy map.xml.dist => map.xml )
 
 vim vendor/magento/data-migration-tool/etc/ce-to-ce/map-eav.xml (after copy map-eav.xml.dist => map-eav.xml )

== Alle Bestellungen löschen ==
<source lang=sql>
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `gift_message`;
TRUNCATE TABLE `quote`;
TRUNCATE TABLE `quote_address`;
TRUNCATE TABLE `quote_address_item`;
TRUNCATE TABLE `quote_id_mask`;
TRUNCATE TABLE `quote_item`;
TRUNCATE TABLE `quote_item_option`;
TRUNCATE TABLE `quote_payment`;
TRUNCATE TABLE `quote_shipping_rate`;
TRUNCATE TABLE `reporting_orders`;
TRUNCATE TABLE `sales_bestsellers_aggregated_daily`;
TRUNCATE TABLE `sales_bestsellers_aggregated_monthly`;
TRUNCATE TABLE `sales_bestsellers_aggregated_yearly`;
TRUNCATE TABLE `sales_creditmemo`;
TRUNCATE TABLE `sales_creditmemo_comment`;
TRUNCATE TABLE `sales_creditmemo_grid`;
TRUNCATE TABLE `sales_creditmemo_item`;
TRUNCATE TABLE `sales_invoice`;
TRUNCATE TABLE `sales_invoiced_aggregated`;
TRUNCATE TABLE `sales_invoiced_aggregated_order`;
TRUNCATE TABLE `sales_invoice_comment`;
TRUNCATE TABLE `sales_invoice_grid`;
TRUNCATE TABLE `sales_invoice_item`;
TRUNCATE TABLE `sales_order`;
TRUNCATE TABLE `sales_order_address`;
TRUNCATE TABLE `sales_order_aggregated_created`;
TRUNCATE TABLE `sales_order_aggregated_updated`;
TRUNCATE TABLE `sales_order_grid`;
TRUNCATE TABLE `sales_order_item`;
TRUNCATE TABLE `sales_order_payment`;
TRUNCATE TABLE `sales_order_status_history`;
TRUNCATE TABLE `sales_order_tax`;
TRUNCATE TABLE `sales_order_tax_item`;
TRUNCATE TABLE `sales_payment_transaction`;
TRUNCATE TABLE `sales_refunded_aggregated`;
TRUNCATE TABLE `sales_refunded_aggregated_order`;
TRUNCATE TABLE `sales_shipment`;
TRUNCATE TABLE `sales_shipment_comment`;
TRUNCATE TABLE `sales_shipment_grid`;
TRUNCATE TABLE `sales_shipment_item`;
TRUNCATE TABLE `sales_shipment_track`;
TRUNCATE TABLE `sales_shipping_aggregated`;
TRUNCATE TABLE `sales_shipping_aggregated_order`;
TRUNCATE TABLE `tax_order_aggregated_created`;
TRUNCATE TABLE `tax_order_aggregated_updated`;

SET FOREIGN_KEY_CHECKS = 1;