繁体   English   中英

升级magento的事实上方法

[英]Defacto method of upgrading magento

如果有的话,是将Magento升级到新版本的事实上的标准方法。

我知道有很多变量在起作用。 但是,肯定必须遵循一组标准步骤。

到目前为止,我认为它是这样的:

Create a mirror of the site
Disable all 3rd party modules
Do the upgrade
Fix any issues
Enable 3rd party modules
Fix any issues

但是我很想听听其他人经过这个过程,并且对于在这里该做什么有经验,因为那里有很多相互矛盾的信息。

我们的数据库大约有10个演出,我们有大约80万个“产品”(其中许多实际上是捆绑产品中的选件,但在大多数情况下,它是相同的)。 因此,这对您而言可能不是必需的...几周前,我们从1.9升级到1.12。 我进行了无数次服装排练,在此过程中我不得不修复不良数据。

  1. 确保您是唯一能够访问服务器的人。 例如,让apache在一个奇怪的端口上监听。
  2. 我们从1.9升级到1.12耗时约3.5个小时,因此请相应延长超时时间。

我不得不修改一些核心文件以关闭唯一和外键检查。 您应该能够通过修改config.xml或local.xml来做到这一点,但这对我们不起作用。

./app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php:

$configArr['initStatements'] = 'SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; SET UNIQUE_CHECKS=0;';

./app/code/core/Mage/Core/Model/Resource/Type/Db/Mysqli.php:

$configArr['initStatements'] = 'SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; SET UNIQUE_CHECKS=0;';

./app/code/core/Mage/Core/Model/Resource.php:

$config['initStatements'] = 'SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; SET UNIQUE_CHECKS=0;';

我需要运行的数据库查询

-- Log tables to truncate
truncate log_url;
truncate log_url_info;
truncate log_visitor;
truncate log_visitor_info;
truncate log_visitor_online;

-- Truncate other large unnecessary tables
truncate op_imagecdn_cache;
truncate core_session;
truncate report_viewed_product_index;
truncate report_compared_product_index;
truncate core_cache;
truncate core_cache_tag;

-- Delete old quotes
DELETE FROM sales_flat_quote WHERE updated_at < DATE_SUB(Now(),INTERVAL 60 DAY);

truncate core_url_rewrite; -- You may not want to do this. We had 2.5 million entries...
truncate report_event;
truncate index_process_event;
truncate index_event;
truncate amazonpayments_api_debug;


-- drop all flat category and flat product tables 
drop table catalog_category_flat_store_1; -- etc.

drop table catalog_product_flat_1; --etc. 

然后运行索引器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM