Results 1 to 2 of 2

Thread: magento更换域名与更改数据库连接方法

  1. #1
    Join Date
    2006-04-02
    Posts
    1

    Default magento更换域名与更改数据库连接方法

    1. 修改magento数据库,core_config_data 表中的path 为web/unsecure/base_url 和web/secure/base_url 的内容,为你的网站的新域名注意域名后面的"/",更换网站完整域名+/ http://www.zuimoban.com/
    如果不起作用,后台清除一下缓存,重建索引。
    2 magento 的数据库的配置文件在 documentROOT-> app->etc -> local.xml
    <default_setup>
    <connection>
    <host><![CDATA[localhost]]></host>
    <username><![CDATA[root]]></username>
    <password><![CDATA[root]]></password>
    <dbname><![CDATA[magento]]></dbname>
    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
    <model><![CDATA[mysql4]]></model>
    <type><![CDATA[pdo_mysql]]></type>
    <pdoType><![CDATA[]]></pdoType>
    <active>1</active>
    </connection>
    </default_setup>
    注意红色字体,依次是用户名,密码,数据库名。

  2. #2
    Join Date
    2010-07-28
    Posts
    2

    Default

    Click image for larger version. 

Name:	21035632b-2.jpg 
Views:	2 
Size:	18.5 KB 
ID:	276

    pls see the pic

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •