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.

1 Comments

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

    Magento get database connection parameters

    ReplyDelete

Post a Comment

Post a Comment

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.