通过sql导入/导出magento类别

时间:2016-03-18 15:41:41

标签: php mysql magento magento-1.9 magento-collection

大家好我想从我的一个magento装置中导出类别并将其导入另一个:

导出的

版本为1.9.2.1和1.9.2.4用于导入,因此应具有相同的数据库结构。

我需要将哪些表格导出到"转移"它们在1.9.2.1和1.9.2.4 magento中的类别。

所以,我想我所追求的是我必须从我的Magento导出的表格列表,其中包含我需要的类别?

我刚刚尝试过以下操作,但没有成功:

首先只采集数据表的数据:

dumped tables

然后我去了以下的地方:

SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_category_entity`;
TRUNCATE TABLE `catalog_category_entity_datetime`;
TRUNCATE TABLE `catalog_category_entity_decimal`;
TRUNCATE TABLE `catalog_category_entity_int`;
TRUNCATE TABLE `catalog_category_entity_text`;
TRUNCATE TABLE `catalog_category_entity_varchar`;
TRUNCATE TABLE `catalog_category_product`;
TRUNCATE TABLE `catalog_category_product_index`;

SET FOREIGN_KEY_CHECKS = 1;

然后使用mysql命令从转储中恢复我运行了转储。

现在进入后端管理类别页面,它显示所有有趣的:

category page

1 个答案:

答案 0 :(得分:1)

您可以使用此解决方案: http://www.blinkdata.com/magmi-on-the-fly-category-creator/

要导出我使用此脚本的类别: Magento export categories -> import with magmi

相关问题