Magento 数据库迁移

时间:2014-10-19 16:57:45   收藏:0   阅读:325

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的数据库名,用户名和密码

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!