首页 > 数据库技术 > 详细

Magento 数据库迁移

时间:2014-10-19 16:57:28      阅读:224      评论:0      收藏:0      [点我收藏+]

magento版本:1.7.0.2

1.表core_config_data

改path字段的web/unsecure/base_urlweb/secure/base_url,修改为当前使用的URL

 

2.表log_url_info

改字段url和referer,使用sql语句批量修改

例如:

UPDATE `log_url_info` SET url=replace(url,‘http://127.0.0.1/magento2‘,‘http://localhost/magento‘) WHERE url LIKE ‘http://127.0.0.1/magento2%‘;

UPDATE `log_url_info` SET referer=replace(referer,‘http://127.0.0.1/magento2‘,‘http://localhost/magento‘) WHERE referer LIKE ‘http://127.0.0.1/magento2%‘;

UPDATE `log_visitor_info` SET http_referer=replace(http_referer,‘http://127.0.0.1/magento2‘,‘http://localhost/magento‘) WHERE http_referer LIKE ‘http://127.0.0.1/magento2%‘;


3.修改app/etc/local.xml的数据库名,用户名和密码

Magento 数据库迁移

原文:http://www.cnblogs.com/sunsoftware/p/4035003.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!