mysql - 将 Magento 1.3 数据迁移/替换为 maganeto 1.6

标签 mysql database magento

我们有一个 Magento 1.3 项目,我们希望将其升级到 magento 1.6。 所以我们安装一个新的magento 1.6,现在我们要将所有产品和客户数据从maganeto 1.3 转移到magento 1.6。我们从 magento 1.3 开始备份其数据库表中的所有产品和客户数据。

这些是我们备份数据的表:

-------------------------------------
Product Tables:
-------------------------------------
catalogrule /
catalogrule_product /
catalogrule_product_price /
catalogrule_affected_product /

catalogindex_price /
catalogindex_eav /
catalogindex_minimal_price /
catalogindex_aggregation_tag /
catalogindex_aggregation /
catalogindex_aggregation_to_tag /

catalogsearch_query /
catalogsearch_fulltext /
catalogsearch_result /
catalog_compare_item /

catalog_category_product /
catalog_category_product_index /
catalog_category_flat_1 /

catalog_product_entity_tier_price /
catalog_product_enabled_index /
catalog_product_website /

catalog_category_entity /
catalog_category_entity_datetime /
catalog_category_entity_decimal /
catalog_category_entity_int /
catalog_category_entity_text /
catalog_category_entity_varchar /

catalog_product_entity /
catalog_product_entity_datetime /
catalog_product_entity_decimal /
catalog_product_entity_gallery /
catalog_product_entity_int /
catalog_product_entity_media_gallery /
catalog_product_entity_media_gallery_value /
catalog_product_entity_text /
catalog_product_entity_varchar /

catalog_product_super_link /
catalog_product_link_type /
catalog_product_link /
catalog_product_link_attribute /
catalog_product_link_attribute_decimal /
catalog_product_link_attribute_int /
catalog_product_link_attribute_varchar /

catalog_product_option/
catalog_product_option_title /
catalog_product_option_price /
catalog_product_option_type_value /
catalog_product_option_type_title /
catalog_product_option_type_price /

cataloginventory_stock /
cataloginventory_stock_status /
cataloginventory_stock_item /

catalog_product_bundle_option /
catalog_product_bundle_option_value /
catalog_product_bundle_selection /
catalog_product_bundle_price_index /

catalog_product_super_attribute //
catalog_product_super_attribute_label/
catalog_product_super_attribute_pricing /

product_alert_price /
product_alert_stock /

downloadable_link_price /
downloadable_link_title /
downloadable_link  /
downloadable_sample_title /
downloadable_sample /

----------------------------------------------
Customers Tables :
----------------------------------------------
customer_group/

newsletter_template /
newsletter_queue/
newsletter_queue_store_link/
newsletter_problem/
newsletter_queue_link/
newsletter_subscriber/

customer_entity/
customer_entity_datetime/
customer_entity_decimal/
customer_entity_int/
customer_entity_text/
customer_entity_varchar/

customer_address_entity/
customer_address_entity_datetime/
customer_address_entity_decimal/
customer_address_entity_int/
customer_address_entity_text/
customer_address_entity_varchar/

review_entity/
review_status/
review/
review_store/
review_entity_summary/
review_detail/

rating_entity/
rating/
rating_store/
rating_option
rating_option_vote/
rating_title/
rating_option_vote_aggregated/

poll/
poll_store/
poll_answer/
poll_vote/

wishlist/
wishlist_item/

然后我们删除 magento 1.6 中数据库表中的所有产品和客户数据。现在,当我们将备份的数据从 magento 1.3 恢复到 1.6 时,我们收到此错误...

Query:
/*Data for the table `catalog_category_entity` */
insert  into `catalog_category_entity`(...)

Error occured at:2012-09-12 14:05:06
Line no.:20
Error Code: 1062 - Duplicate entry '1' for key 'PRIMARY'

我只是想知道,为什么当我删除magento 1.6中的所有旧数据时,它变成“主键重复条目”?

有人知道我的情况吗?您能否给我另一个关于如何将所有产品和客户数据从 magento 1.3 转移到 1.6 的想法?

任何帮助将不胜感激。提前致谢...

最佳答案

更好的方法:

  • 缓存轮次
  • 关闭所有自定义本地和社区扩展程序
  • 关闭所有本地核心覆盖
  • 关闭所有自定义主题和主题自定义
  • 重新生成索引
  • 复制 1.6 或最新的 Magento 代码
  • 启动升级并完成

关于mysql - 将 Magento 1.3 数据迁移/替换为 maganeto 1.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12382178/

相关文章:

MySQL:使用 UNION 与多个查询

Mysql查询垂直 "\G"不工作

sql - 选择具有相同姓名和家庭sql的人

sql-server - SQL Server 远程连接错误

magento - Maintenance.flag文件使用

javascript - Magento 中的调用函数

php - 用于特定插入的数据类型

php - 简单的 php 上传,我如何制作自动递增名称并设置允许类型并提高应用程序级别的安全性

php - 如何修复通知 : Object of class PDOStatement could not be converted to int

magento - 在 magento 中添加新的系统属性