Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

How to change the database setting in magento

The magento's database settings is stored in this file:

app/etc/local.xml

you would find something like this:



<default_setup>
  <connection>
    <host><![CDATA[localhost]]></host>
    <username><![CDATA[username]]></username>
    <password><![CDATA[password]]></password>
    <dbname><![CDATA[databasename]]></dbname>
    <active>1
  </connection>
</default_setup>



Just change according to your connection.
How to change the database setting in magento How to change the database setting in magento Reviewed by czetsuya on Saturday, October 03, 2009 Rating: 5

1 comment:

Marc said...

If you need to get those database details back out again, this article explains how.

Magento get database connection parameters

Powered by Blogger.