Magento 数据库迁移

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

posted @ 2014-10-19 15:53  AndyTai  Views(347)  Comments(0Edit  收藏  举报