To alter the Magento database connection you have to edit the following file:
“Magento folder”/app/etc/local.xml
1 2 3 4 5 6 7 8 9 10 11 |
<connection> <host><![CDATA[localhost]]></host> #database location <username><![CDATA[user]]></username> #username <password><![CDATA[password]]></password> #password <dbname><![CDATA[database]]></dbname> #database name <initStatements><![CDATA[SET NAMES utf8]]></initStatements> <model><![CDATA[mysql4]]></model> <type><![CDATA[pdo_mysql]]></type> <pdoType><![CDATA[]]></pdoType> <active>1</active> </connection> |
Leave a Reply