If you want to change the Magento database configuration file. You can find the file local.xml
<DocumentRoot>/app/etc/
The code should be something like that:
<config>
<global>
<install>
<date><![CDATA[Tue, 30 Apr 2013 13:42:46 +0000]]></date>
</install>
<crypt>
<key><![CDATA[f71bejhefa9510f00422fc8650f46c24]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[localhost]]></host>
<username><![CDATA[MyUserName]]></username>
<password><![CDATA[MyPassword]]></password>
<dbname><![CDATA[MydatabaseName]]></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>
</resources>
<session_save><![CDATA[files]]></session_save>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontName><![CDATA[admin]]></frontName>
</args>
</adminhtml>
</routers>
</admin>
</config>
留言
張貼留言