如果你的空間可以用ssh的話,你可以在官網的wiki Moving Magento To Another Server中看到較為詳細的搬家過程。無論你的伺服器是linux系統還是windows系統,其過程都是一樣的,轉移檔案、轉移資料庫、初始化網址使用者名密碼或者不初始化。
local.xml檔案片段:
<default_setup>
<connection>
<host><![CDATA[localhost]]></host> <!– 資料庫伺服器位址,localhost指本地 –>
<username><![CDATA[root]]></username> <!– 資料庫使用者名 –>
<password><![CDATA[]]></password> <!– 資料庫密碼 –>
<dbname><![CDATA[magento1324test]]></dbname><!– 資料庫名字 –>
<active>1</active>
</connection>
<db>
<table_prefix><![CDATA[]]></table_prefix> <!– 此處代碼片段顯示沒有字首,但你要注意你的 –>
</db>