{"id":123,"date":"2021-01-19T14:00:05","date_gmt":"2021-01-19T06:00:05","guid":{"rendered":"https:\/\/www.xyn4.cn\/?p=123"},"modified":"2021-01-21T15:40:07","modified_gmt":"2021-01-21T07:40:07","slug":"magemto-1-9-%e6%b8%85%e9%99%a4%e6%89%80%e6%9c%89%e7%9a%84%e4%ba%a7%e5%93%81%e8%ae%a2%e5%8d%95%e5%ae%a2%e6%88%b7%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/www.xyn4.cn\/?p=123","title":{"rendered":"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>###################\n#BESTSELLERS\n###################\n\n\nSET FOREIGN_KEY_CHECKS=0;\nTRUNCATE catalogsearch_query;\nTRUNCATE catalogsearch_fulltext;\nTRUNCATE catalogsearch_result;\nALTER TABLE catalogsearch_query AUTO_INCREMENT=1;\nALTER TABLE catalogsearch_fulltext AUTO_INCREMENT=1;\nALTER TABLE catalogsearch_result AUTO_INCREMENT=1;\n\nTRUNCATE TABLE sales_bestsellers_aggregated_daily;\nTRUNCATE TABLE sales_bestsellers_aggregated_monthly;\nTRUNCATE TABLE sales_bestsellers_aggregated_yearly;\nALTER TABLE sales_bestsellers_aggregated_daily AUTO_INCREMENT=1;\nALTER TABLE sales_bestsellers_aggregated_monthly AUTO_INCREMENT=1;\nALTER TABLE sales_bestsellers_aggregated_yearly AUTO_INCREMENT=1;\nSET FOREIGN_KEY_CHECKS=1;\n\n\n# Tested on Magento CE 1.4.1.1 - 1.9.1.1\n \nSET FOREIGN_KEY_CHECKS=0;\n \n##############################\n# SALES RELATED TABLES\n##############################\nTRUNCATE `sales_flat_creditmemo`;\nTRUNCATE `sales_flat_creditmemo_comment`;\nTRUNCATE `sales_flat_creditmemo_grid`;\nTRUNCATE `sales_flat_creditmemo_item`;\nTRUNCATE `sales_flat_invoice`;\nTRUNCATE `sales_flat_invoice_comment`;\nTRUNCATE `sales_flat_invoice_grid`;\nTRUNCATE `sales_flat_invoice_item`;\nTRUNCATE `sales_flat_order`;\nTRUNCATE `sales_flat_order_address`;\nTRUNCATE `sales_flat_order_grid`;\nTRUNCATE `sales_flat_order_item`;\nTRUNCATE `sales_flat_order_payment`;\nTRUNCATE `sales_flat_order_status_history`;\nTRUNCATE `sales_flat_quote`;\nTRUNCATE `sales_flat_quote_address`;\nTRUNCATE `sales_flat_quote_address_item`;\nTRUNCATE `sales_flat_quote_item`;\nTRUNCATE `sales_flat_quote_item_option`;\nTRUNCATE `sales_flat_quote_payment`;\nTRUNCATE `sales_flat_quote_shipping_rate`;\nTRUNCATE `sales_flat_shipment`;\nTRUNCATE `sales_flat_shipment_comment`;\nTRUNCATE `sales_flat_shipment_grid`;\nTRUNCATE `sales_flat_shipment_item`;\nTRUNCATE `sales_flat_shipment_track`;\nTRUNCATE `sales_invoiced_aggregated`;            # ??\nTRUNCATE `sales_invoiced_aggregated_order`;        # ??\nTRUNCATE `log_quote`;\n \nALTER TABLE `sales_flat_creditmemo_comment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_creditmemo_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_creditmemo_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice_comment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_address` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_payment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_status_history` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_address` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_address_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_item_option` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_payment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_shipping_rate` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_comment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_track` AUTO_INCREMENT=1;\nALTER TABLE `sales_invoiced_aggregated` AUTO_INCREMENT=1;\nALTER TABLE `sales_invoiced_aggregated_order` AUTO_INCREMENT=1;\nALTER TABLE `log_quote` AUTO_INCREMENT=1;\n \n#########################################\n# DOWNLOADABLE PURCHASED\n#########################################\nTRUNCATE `downloadable_link_purchased`;\nTRUNCATE `downloadable_link_purchased_item`;\n \nALTER TABLE `downloadable_link_purchased` AUTO_INCREMENT=1;\nALTER TABLE `downloadable_link_purchased_item` AUTO_INCREMENT=1;\n \n#########################################\n# RESET ID COUNTERS\n#########################################\nTRUNCATE `eav_entity_store`;\nALTER TABLE  `eav_entity_store` AUTO_INCREMENT=1;\n \n \n##############################\n# CUSTOMER RELATED TABLES\n##############################\nTRUNCATE `customer_address_entity`;\nTRUNCATE `customer_address_entity_datetime`;\nTRUNCATE `customer_address_entity_decimal`;\nTRUNCATE `customer_address_entity_int`;\nTRUNCATE `customer_address_entity_text`;\nTRUNCATE `customer_address_entity_varchar`;\nTRUNCATE `customer_entity`;\nTRUNCATE `customer_entity_datetime`;\nTRUNCATE `customer_entity_decimal`;\nTRUNCATE `customer_entity_int`;\nTRUNCATE `customer_entity_text`;\nTRUNCATE `customer_entity_varchar`;\nTRUNCATE `tag`;\nTRUNCATE `tag_relation`;\nTRUNCATE `tag_summary`;\nTRUNCATE `tag_properties`;            ## CHECK ME\nTRUNCATE `wishlist`;\nTRUNCATE `log_customer`;\n \nALTER TABLE `customer_address_entity` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_datetime` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_decimal` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_int` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_text` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_varchar` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_datetime` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_decimal` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_int` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_text` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_varchar` AUTO_INCREMENT=1;\nALTER TABLE `tag` AUTO_INCREMENT=1;\nALTER TABLE `tag_relation` AUTO_INCREMENT=1;\nALTER TABLE `tag_summary` AUTO_INCREMENT=1;\nALTER TABLE `tag_properties` AUTO_INCREMENT=1;\nALTER TABLE `wishlist` AUTO_INCREMENT=1;\nALTER TABLE `log_customer` AUTO_INCREMENT=1;\n \n \n##############################\n# ADDITIONAL LOGS\n##############################\nTRUNCATE `log_url`;\nTRUNCATE `log_url_info`;\nTRUNCATE `log_visitor`;\nTRUNCATE `log_visitor_info`;\nTRUNCATE `report_event`;\nTRUNCATE `report_viewed_product_index`;\nTRUNCATE `sendfriend_log`;\n### ??? TRUNCATE `log_summary`\n \nALTER TABLE `log_url` AUTO_INCREMENT=1;\nALTER TABLE `log_url_info` AUTO_INCREMENT=1;\nALTER TABLE `log_visitor` AUTO_INCREMENT=1;\nALTER TABLE `log_visitor_info` AUTO_INCREMENT=1;\nALTER TABLE `report_event` AUTO_INCREMENT=1;\nALTER TABLE `report_viewed_product_index` AUTO_INCREMENT=1;\nALTER TABLE `sendfriend_log` AUTO_INCREMENT=1;\n### ??? ALTER TABLE `log_summary` AUTO_INCREMENT=1;\n \nSET FOREIGN_KEY_CHECKS=1;\n\n#########################\n# NEWSLETTER SUBS\n#########################\nSET FOREIGN_KEY_CHECKS=0;\n\nTRUNCATE newsletter_problem;\nTRUNCATE newsletter_queue;\nTRUNCATE newsletter_queue_link;\nTRUNCATE newsletter_queue_store_link;\nTRUNCATE newsletter_subscriber;\nTRUNCATE newsletter_template;\n\nALTER TABLE newsletter_problem AUTO_INCREMENT=1;\nALTER TABLE newsletter_queue AUTO_INCREMENT=1;\nALTER TABLE newsletter_queue_link AUTO_INCREMENT=1;\nALTER TABLE newsletter_queue_store_link AUTO_INCREMENT=1;\nALTER TABLE newsletter_subscriber AUTO_INCREMENT=1;\nALTER TABLE newsletter_template AUTO_INCREMENT=1;\n\nSET FOREIGN_KEY_CHECKS=1;\n\n####################\n# PRODUCTS\n####################\nSET FOREIGN_KEY_CHECKS=0;\nTRUNCATE TABLE `catalog_product_bundle_option`;\nTRUNCATE TABLE `catalog_product_bundle_option_value`;\nTRUNCATE TABLE `catalog_product_bundle_selection`;\nTRUNCATE TABLE `catalog_product_entity_datetime`;\nTRUNCATE TABLE `catalog_product_entity_decimal`;\nTRUNCATE TABLE `catalog_product_entity_gallery`;\nTRUNCATE TABLE `catalog_product_entity_int`;\nTRUNCATE TABLE `catalog_product_entity_media_gallery`;\nTRUNCATE TABLE `catalog_product_entity_media_gallery_value`;\nTRUNCATE TABLE `catalog_product_entity_text`;\nTRUNCATE TABLE `catalog_product_entity_tier_price`;\nTRUNCATE TABLE `catalog_product_entity_varchar`;\nTRUNCATE TABLE `catalog_product_link`;\nTRUNCATE TABLE `catalog_product_link_attribute`;\nTRUNCATE TABLE `catalog_product_link_attribute_decimal`;\nTRUNCATE TABLE `catalog_product_link_attribute_int`;\nTRUNCATE TABLE `catalog_product_link_attribute_varchar`;\nTRUNCATE TABLE `catalog_product_link_type`;\nTRUNCATE TABLE `catalog_product_option`;\nTRUNCATE TABLE `catalog_product_option_price`;\nTRUNCATE TABLE `catalog_product_option_title`;\nTRUNCATE TABLE `catalog_product_option_type_price`;\nTRUNCATE TABLE `catalog_product_option_type_title`;\nTRUNCATE TABLE `catalog_product_option_type_value`;\nTRUNCATE TABLE `catalog_product_super_attribute_label`;\nTRUNCATE TABLE `catalog_product_super_attribute_pricing`;\nTRUNCATE TABLE `catalog_product_super_attribute`;\nTRUNCATE TABLE `catalog_product_super_link`;\nTRUNCATE TABLE `catalog_product_enabled_index`;\nTRUNCATE TABLE `catalog_product_website`;\nTRUNCATE TABLE `catalog_category_product_index`;\nTRUNCATE TABLE `catalog_category_product`;\nTRUNCATE TABLE `cataloginventory_stock_item`;\nTRUNCATE TABLE `cataloginventory_stock_status`;\nTRUNCATE TABLE `cataloginventory_stock`;\nTRUNCATE TABLE `rating_option_vote`; \nTRUNCATE TABLE `rating_option_vote_aggregated`;\nTRUNCATE TABLE `review`; \nTRUNCATE TABLE `review_detail`; \nTRUNCATE TABLE `review_entity_summary`; \nTRUNCATE TABLE `review_store`;\nINSERT  INTO `catalog_product_link_type`(`link_type_id`,`code`) VALUES (1,'relation'),(2,'bundle'),(3,'super'),(4,'up_sell'),(5,'cross_sell');\nINSERT  INTO `catalog_product_link_attribute`(`product_link_attribute_id`,`link_type_id`,`product_link_attribute_code`,`data_type`) VALUES (1,2,'qty','decimal'),(2,1,'position','int'),(3,4,'position','int'),(4,5,'position','int'),(6,1,'qty','decimal'),(7,3,'position','int'),(8,3,'qty','decimal');\nINSERT  INTO `cataloginventory_stock`(`stock_id`,`stock_name`) VALUES (1,'Default');\nTRUNCATE TABLE `catalog_product_entity`;\nSET FOREIGN_KEY_CHECKS=1;\n\u8fd9\u5c06\u9002\u7528\u4e8e\u4f01\u4e1a\uff0c\u5305\u62ec\u51e0\u4e2a\u989d\u5916\u7684\u8868\uff0c\u8ba9\u6211\u77e5\u9053\u4f60\u662f\u5426\u9700\u8981\u5b83\u3002\n\nWoot! This post originally written in English (US) - has been translated by a collection of rogue Live Community bots just for you. When you reply, it will also be translated back to English (US).Woot! This post originally written in English (US) - has been translated by a collection of rogue Live Community bots just for you. When you reply, it will also be translated back to English (US).\n5 REPLIES\nPronto\n Pronto M2 Certified\n\u200e02-17-2016 06:09 AM\nRe\uff1a \u5982\u4f55\u91cd\u7f6e\u6d4b\u8bd5\u8ba2\u5355\u548c\u4eea\u8868\u677f\u7edf\u8ba1\u4fe1\u606f - Magento 1.9 \n\u6ca1\u6709\u4f18\u96c5\u7684\u65b9\u6cd5\u3002\u4f46\u662f\uff0c\u6709\u7528\u4e8e\u5220\u9664\u4e0d\u9700\u8981\u7684\u8ba2\u5355\u7684\u6269\u5c55\uff1ahttps:\/\/www.magentocommerce.com\/magento-connect\/delete-orders-6.html\n\n \n\n\u5bf9\u5927\u591a\u6570\u4eba\u6765\u8bf4\uff0c\u5b83\u8db3\u591f\u8fd1\u3002\n\nWoot! This post originally written in English (US) - has been translated by a collection of rogue Live Community bots just for you. When you reply, it will also be translated back to English (US).\nStore_Manager\n Store_Manager Super Contributor\n\u200e02-17-2016 07:32 AM\nRe\uff1a \u5982\u4f55\u91cd\u7f6e\u6d4b\u8bd5\u8ba2\u5355\u548c\u4eea\u8868\u677f\u7edf\u8ba1\u4fe1\u606f - Magento 1.9 \n\u5728 Magento \u4e2d\uff0c\u60a8\u53ef\u4ee5\u53d6\u6d88\u8ba2\u5355\uff0c\u4f46\u4e0d\u80fd\u5220\u9664\u5b83\u4eec\u3002\u6839\u672c\u6ca1\u6709\"\u5220\u9664\u987a\u5e8f\"\u6309\u94ae\u3002\n\u9650\u5236\u8ba2\u5355\u5220\u9664\u7684\u51b3\u5b9a\u662f\u6709\u9053\u7406\u7684\uff0c\u56e0\u4e3a\u5b83\u4eec\u5305\u542b\u5ba2\u6237\u7684\u4ed8\u6b3e\u4fe1\u606f\uff0c\u5220\u9664\u53ef\u88ab\u89c6\u4e3a\u6b3a\u8bc8\u3002\n\n\u5982\u679c\u60a8\u6709\u9700\u8981\u91cd\u7f6e\u7684\u6d4b\u8bd5\u8ba2\u5355\u4ee5\u8fdb\u4e00\u6b65\u6b63\u786e\u8bb0\u5e10\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u6216\u6269\u5c55\u4f5c\u4e3a\u89e3\u51b3\u65b9\u6cd5\u3002\n\n \n\n\u4ee5\u4e0b\u662f\u666e\u9f99\u6258\u63d0\u4f9b\u7684\u94fe\u63a5\uff1a\n\nhttp:&#47;&#47;www.magikcommerce.com\/blog\/how-to-delete-magento-test-orders-from-a-magento-store\/\n\n \n\nhttps:\/\/www.mag-manager.com\/useful-articles\/magento-orders-management\/how-to-delete-magento-test-orders\/\n\nWoot! This post originally written in English (US) - has been translated by a collection of rogue Live Community bots just for you. When you reply, it will also be translated back to English (US).\ncitizenshop7\n citizenshop7 New Contributor\n\u200e02-20-2016 05:59 AM\n Re: How To Reset Test Orders And Dashboard Statistics - Magento 1.9\n\u5982\u679c\u60a8\u5bf9\u4f7f\u7528 phpMyAdmin \u548c\u4f7f\u7528 SQL \u611f\u5230\u6ee1\u610f\uff0c\u90a3\u4e48\u6211\u5efa\u8bae\uff1a\n\n \n\n###################\n#BESTSELLERS\n###################\n\n\nSET FOREIGN_KEY_CHECKS=0;\nTRUNCATE catalogsearch_query;\nTRUNCATE catalogsearch_fulltext;\nTRUNCATE catalogsearch_result;\nALTER TABLE catalogsearch_query AUTO_INCREMENT=1;\nALTER TABLE catalogsearch_fulltext AUTO_INCREMENT=1;\nALTER TABLE catalogsearch_result AUTO_INCREMENT=1;\n\nTRUNCATE TABLE sales_bestsellers_aggregated_daily;\nTRUNCATE TABLE sales_bestsellers_aggregated_monthly;\nTRUNCATE TABLE sales_bestsellers_aggregated_yearly;\nALTER TABLE sales_bestsellers_aggregated_daily AUTO_INCREMENT=1;\nALTER TABLE sales_bestsellers_aggregated_monthly AUTO_INCREMENT=1;\nALTER TABLE sales_bestsellers_aggregated_yearly AUTO_INCREMENT=1;\nSET FOREIGN_KEY_CHECKS=1;\n\n\n# Tested on Magento CE 1.4.1.1 - 1.9.1.1\n \nSET FOREIGN_KEY_CHECKS=0;\n \n##############################\n# SALES RELATED TABLES\n##############################\nTRUNCATE `sales_flat_creditmemo`;\nTRUNCATE `sales_flat_creditmemo_comment`;\nTRUNCATE `sales_flat_creditmemo_grid`;\nTRUNCATE `sales_flat_creditmemo_item`;\nTRUNCATE `sales_flat_invoice`;\nTRUNCATE `sales_flat_invoice_comment`;\nTRUNCATE `sales_flat_invoice_grid`;\nTRUNCATE `sales_flat_invoice_item`;\nTRUNCATE `sales_flat_order`;\nTRUNCATE `sales_flat_order_address`;\nTRUNCATE `sales_flat_order_grid`;\nTRUNCATE `sales_flat_order_item`;\nTRUNCATE `sales_flat_order_payment`;\nTRUNCATE `sales_flat_order_status_history`;\nTRUNCATE `sales_flat_quote`;\nTRUNCATE `sales_flat_quote_address`;\nTRUNCATE `sales_flat_quote_address_item`;\nTRUNCATE `sales_flat_quote_item`;\nTRUNCATE `sales_flat_quote_item_option`;\nTRUNCATE `sales_flat_quote_payment`;\nTRUNCATE `sales_flat_quote_shipping_rate`;\nTRUNCATE `sales_flat_shipment`;\nTRUNCATE `sales_flat_shipment_comment`;\nTRUNCATE `sales_flat_shipment_grid`;\nTRUNCATE `sales_flat_shipment_item`;\nTRUNCATE `sales_flat_shipment_track`;\nTRUNCATE `sales_invoiced_aggregated`;            # ??\nTRUNCATE `sales_invoiced_aggregated_order`;        # ??\nTRUNCATE `log_quote`;\n \nALTER TABLE `sales_flat_creditmemo_comment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_creditmemo_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_creditmemo_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice_comment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_invoice_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_address` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_payment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_order_status_history` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_address` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_address_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_item_option` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_payment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_quote_shipping_rate` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_comment` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_grid` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_item` AUTO_INCREMENT=1;\nALTER TABLE `sales_flat_shipment_track` AUTO_INCREMENT=1;\nALTER TABLE `sales_invoiced_aggregated` AUTO_INCREMENT=1;\nALTER TABLE `sales_invoiced_aggregated_order` AUTO_INCREMENT=1;\nALTER TABLE `log_quote` AUTO_INCREMENT=1;\n \n#########################################\n# DOWNLOADABLE PURCHASED\n#########################################\nTRUNCATE `downloadable_link_purchased`;\nTRUNCATE `downloadable_link_purchased_item`;\n \nALTER TABLE `downloadable_link_purchased` AUTO_INCREMENT=1;\nALTER TABLE `downloadable_link_purchased_item` AUTO_INCREMENT=1;\n \n#########################################\n# RESET ID COUNTERS\n#########################################\nTRUNCATE `eav_entity_store`;\nALTER TABLE  `eav_entity_store` AUTO_INCREMENT=1;\n \n \n##############################\n# CUSTOMER RELATED TABLES\n##############################\nTRUNCATE `customer_address_entity`;\nTRUNCATE `customer_address_entity_datetime`;\nTRUNCATE `customer_address_entity_decimal`;\nTRUNCATE `customer_address_entity_int`;\nTRUNCATE `customer_address_entity_text`;\nTRUNCATE `customer_address_entity_varchar`;\nTRUNCATE `customer_entity`;\nTRUNCATE `customer_entity_datetime`;\nTRUNCATE `customer_entity_decimal`;\nTRUNCATE `customer_entity_int`;\nTRUNCATE `customer_entity_text`;\nTRUNCATE `customer_entity_varchar`;\nTRUNCATE `tag`;\nTRUNCATE `tag_relation`;\nTRUNCATE `tag_summary`;\nTRUNCATE `tag_properties`;            ## CHECK ME\nTRUNCATE `wishlist`;\nTRUNCATE `log_customer`;\n \nALTER TABLE `customer_address_entity` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_datetime` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_decimal` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_int` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_text` AUTO_INCREMENT=1;\nALTER TABLE `customer_address_entity_varchar` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_datetime` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_decimal` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_int` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_text` AUTO_INCREMENT=1;\nALTER TABLE `customer_entity_varchar` AUTO_INCREMENT=1;\nALTER TABLE `tag` AUTO_INCREMENT=1;\nALTER TABLE `tag_relation` AUTO_INCREMENT=1;\nALTER TABLE `tag_summary` AUTO_INCREMENT=1;\nALTER TABLE `tag_properties` AUTO_INCREMENT=1;\nALTER TABLE `wishlist` AUTO_INCREMENT=1;\nALTER TABLE `log_customer` AUTO_INCREMENT=1;\n \n \n##############################\n# ADDITIONAL LOGS\n##############################\nTRUNCATE `log_url`;\nTRUNCATE `log_url_info`;\nTRUNCATE `log_visitor`;\nTRUNCATE `log_visitor_info`;\nTRUNCATE `report_event`;\nTRUNCATE `report_viewed_product_index`;\nTRUNCATE `sendfriend_log`;\n### ??? TRUNCATE `log_summary`\n \nALTER TABLE `log_url` AUTO_INCREMENT=1;\nALTER TABLE `log_url_info` AUTO_INCREMENT=1;\nALTER TABLE `log_visitor` AUTO_INCREMENT=1;\nALTER TABLE `log_visitor_info` AUTO_INCREMENT=1;\nALTER TABLE `report_event` AUTO_INCREMENT=1;\nALTER TABLE `report_viewed_product_index` AUTO_INCREMENT=1;\nALTER TABLE `sendfriend_log` AUTO_INCREMENT=1;\n### ??? ALTER TABLE `log_summary` AUTO_INCREMENT=1;\n \nSET FOREIGN_KEY_CHECKS=1;\n\n#########################\n# NEWSLETTER SUBS\n#########################\nSET FOREIGN_KEY_CHECKS=0;\n\nTRUNCATE newsletter_problem;\nTRUNCATE newsletter_queue;\nTRUNCATE newsletter_queue_link;\nTRUNCATE newsletter_queue_store_link;\nTRUNCATE newsletter_subscriber;\nTRUNCATE newsletter_template;\n\nALTER TABLE newsletter_problem AUTO_INCREMENT=1;\nALTER TABLE newsletter_queue AUTO_INCREMENT=1;\nALTER TABLE newsletter_queue_link AUTO_INCREMENT=1;\nALTER TABLE newsletter_queue_store_link AUTO_INCREMENT=1;\nALTER TABLE newsletter_subscriber AUTO_INCREMENT=1;\nALTER TABLE newsletter_template AUTO_INCREMENT=1;\n\nSET FOREIGN_KEY_CHECKS=1;\n\n####################\n# PRODUCTS\n####################\nSET FOREIGN_KEY_CHECKS=0;\nTRUNCATE TABLE `catalog_product_bundle_option`;\nTRUNCATE TABLE `catalog_product_bundle_option_value`;\nTRUNCATE TABLE `catalog_product_bundle_selection`;\nTRUNCATE TABLE `catalog_product_entity_datetime`;\nTRUNCATE TABLE `catalog_product_entity_decimal`;\nTRUNCATE TABLE `catalog_product_entity_gallery`;\nTRUNCATE TABLE `catalog_product_entity_int`;\nTRUNCATE TABLE `catalog_product_entity_media_gallery`;\nTRUNCATE TABLE `catalog_product_entity_media_gallery_value`;\nTRUNCATE TABLE `catalog_product_entity_text`;\nTRUNCATE TABLE `catalog_product_entity_tier_price`;\nTRUNCATE TABLE `catalog_product_entity_varchar`;\nTRUNCATE TABLE `catalog_product_link`;\nTRUNCATE TABLE `catalog_product_link_attribute`;\nTRUNCATE TABLE `catalog_product_link_attribute_decimal`;\nTRUNCATE TABLE `catalog_product_link_attribute_int`;\nTRUNCATE TABLE `catalog_product_link_attribute_varchar`;\nTRUNCATE TABLE `catalog_product_link_type`;\nTRUNCATE TABLE `catalog_product_option`;\nTRUNCATE TABLE `catalog_product_option_price`;\nTRUNCATE TABLE `catalog_product_option_title`;\nTRUNCATE TABLE `catalog_product_option_type_price`;\nTRUNCATE TABLE `catalog_product_option_type_title`;\nTRUNCATE TABLE `catalog_product_option_type_value`;\nTRUNCATE TABLE `catalog_product_super_attribute_label`;\nTRUNCATE TABLE `catalog_product_super_attribute_pricing`;\nTRUNCATE TABLE `catalog_product_super_attribute`;\nTRUNCATE TABLE `catalog_product_super_link`;\nTRUNCATE TABLE `catalog_product_enabled_index`;\nTRUNCATE TABLE `catalog_product_website`;\nTRUNCATE TABLE `catalog_category_product_index`;\nTRUNCATE TABLE `catalog_category_product`;\nTRUNCATE TABLE `cataloginventory_stock_item`;\nTRUNCATE TABLE `cataloginventory_stock_status`;\nTRUNCATE TABLE `cataloginventory_stock`;\nTRUNCATE TABLE `rating_option_vote`; \nTRUNCATE TABLE `rating_option_vote_aggregated`;\nTRUNCATE TABLE `review`; \nTRUNCATE TABLE `review_detail`; \nTRUNCATE TABLE `review_entity_summary`; \nTRUNCATE TABLE `review_store`;\nINSERT  INTO `catalog_product_link_type`(`link_type_id`,`code`) VALUES (1,'relation'),(2,'bundle'),(3,'super'),(4,'up_sell'),(5,'cross_sell');\nINSERT  INTO `catalog_product_link_attribute`(`product_link_attribute_id`,`link_type_id`,`product_link_attribute_code`,`data_type`) VALUES (1,2,'qty','decimal'),(2,1,'position','int'),(3,4,'position','int'),(4,5,'position','int'),(6,1,'qty','decimal'),(7,3,'position','int'),(8,3,'qty','decimal');\nINSERT  INTO `cataloginventory_stock`(`stock_id`,`stock_name`) VALUES (1,'Default');\nTRUNCATE TABLE `catalog_product_entity`;\nSET FOREIGN_KEY_CHECKS=1;<\/code><\/pre>\n\n\n\n<p>\u91cd\u7f6e\u6240\u6709\u7684 ID counters<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>TRUNCATE `eav_entity_store`;\nALTER TABLE `eav_entity_store` AUTO_INCREMENT=1;\n \nSET FOREIGN_KEY_CHECKS=1;<\/code><\/pre>\n<noscript><style>article img.lazyload[src^=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPg\"]{display: none;}<\/style><\/noscript>","protected":false},"excerpt":{"rendered":"<p>\u91cd\u7f6e\u6240\u6709\u7684 ID counters<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-magento"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e - \u7406\u60f3\u4e09\u65ec\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xyn4.cn\/?p=123\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e - \u7406\u60f3\u4e09\u65ec\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u91cd\u7f6e\u6240\u6709\u7684 ID counters\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xyn4.cn\/?p=123\" \/>\n<meta property=\"og:site_name\" content=\"\u7406\u60f3\u4e09\u65ec\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-19T06:00:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-21T07:40:07+00:00\" \/>\n<meta name=\"author\" content=\"lzf\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"lzf\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xyn4.cn\/#website\",\"url\":\"https:\/\/www.xyn4.cn\/\",\"name\":\"\u7406\u60f3\u4e09\u65ec\u535a\u5ba2\",\"description\":\"\u53c8\u4e00\u4e2aWordPress\u7ad9\u70b9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xyn4.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xyn4.cn\/?p=123\",\"url\":\"https:\/\/www.xyn4.cn\/?p=123\",\"name\":\"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e - \u7406\u60f3\u4e09\u65ec\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"https:\/\/www.xyn4.cn\/#website\"},\"datePublished\":\"2021-01-19T06:00:05+00:00\",\"dateModified\":\"2021-01-21T07:40:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.xyn4.cn\/#\/schema\/person\/1aa4e9bb2ca9ebffc5d1925d017e2332\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xyn4.cn\/?p=123#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xyn4.cn\/?p=123\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xyn4.cn\/?p=123#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.xyn4.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xyn4.cn\/#\/schema\/person\/1aa4e9bb2ca9ebffc5d1925d017e2332\",\"name\":\"lzf\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.xyn4.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cn.gravatar.com\/avatar\/a2e850dc4ffdb86146e97bf818fc8ed6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/cn.gravatar.com\/avatar\/a2e850dc4ffdb86146e97bf818fc8ed6?s=96&d=mm&r=g\",\"caption\":\"lzf\"},\"sameAs\":[\"http:\/\/www.lzfblog.com\"],\"url\":\"https:\/\/www.xyn4.cn\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e - \u7406\u60f3\u4e09\u65ec\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xyn4.cn\/?p=123","og_locale":"zh_CN","og_type":"article","og_title":"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e - \u7406\u60f3\u4e09\u65ec\u535a\u5ba2","og_description":"\u91cd\u7f6e\u6240\u6709\u7684 ID counters","og_url":"https:\/\/www.xyn4.cn\/?p=123","og_site_name":"\u7406\u60f3\u4e09\u65ec\u535a\u5ba2","article_published_time":"2021-01-19T06:00:05+00:00","article_modified_time":"2021-01-21T07:40:07+00:00","author":"lzf","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"lzf","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.xyn4.cn\/#website","url":"https:\/\/www.xyn4.cn\/","name":"\u7406\u60f3\u4e09\u65ec\u535a\u5ba2","description":"\u53c8\u4e00\u4e2aWordPress\u7ad9\u70b9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xyn4.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/www.xyn4.cn\/?p=123","url":"https:\/\/www.xyn4.cn\/?p=123","name":"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e - \u7406\u60f3\u4e09\u65ec\u535a\u5ba2","isPartOf":{"@id":"https:\/\/www.xyn4.cn\/#website"},"datePublished":"2021-01-19T06:00:05+00:00","dateModified":"2021-01-21T07:40:07+00:00","author":{"@id":"https:\/\/www.xyn4.cn\/#\/schema\/person\/1aa4e9bb2ca9ebffc5d1925d017e2332"},"breadcrumb":{"@id":"https:\/\/www.xyn4.cn\/?p=123#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xyn4.cn\/?p=123"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.xyn4.cn\/?p=123#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.xyn4.cn\/"},{"@type":"ListItem","position":2,"name":"magemto 1.9 \u6e05\u9664\u6240\u6709\u7684\u4ea7\u54c1\u8ba2\u5355\u5ba2\u6237\u6570\u636e"}]},{"@type":"Person","@id":"https:\/\/www.xyn4.cn\/#\/schema\/person\/1aa4e9bb2ca9ebffc5d1925d017e2332","name":"lzf","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.xyn4.cn\/#\/schema\/person\/image\/","url":"https:\/\/cn.gravatar.com\/avatar\/a2e850dc4ffdb86146e97bf818fc8ed6?s=96&d=mm&r=g","contentUrl":"https:\/\/cn.gravatar.com\/avatar\/a2e850dc4ffdb86146e97bf818fc8ed6?s=96&d=mm&r=g","caption":"lzf"},"sameAs":["http:\/\/www.lzfblog.com"],"url":"https:\/\/www.xyn4.cn\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":2,"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xyn4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}