Magento where is database configuration file?


Find the local.xml  in your project’s root_directoryappetclocal.xml

There you will see the code something like below,  see the code in red colour, YES!! there goes your database details :

<config>
<global>
<install>
<date><![CDATA[Tue, 16 Apr 2013 06:15:40 +0000]]></date>
</install>
<crypt>
<key><![CDATA[9686e1cd0fb7386730007e9317c0ad98]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[your_database_host_name]]></host>
<username><![CDATA[your_database_username]]></username>
<password><![CDATA[your_database_password]]></password>
<dbname><![CDATA[your_database_name]]></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>

If this info helped you, like this and share this with your friends.

Tagged with: , , , , , , ,
Posted in Magento
4 comments on “Magento where is database configuration file?
  1. Jerilyn says:

    I love your blog.. very nice colors & theme. Did you create this
    website yourself or did you hire someone to do it for you?
    Plz answer back as I’m looking to design my own blog and would like to find out where u got this from.
    thank you

  2. Thanks Jerilyn for your comment. I have done it myself. Do you want it?

  3. sreedarsh says:

    Great blog…Thankyou so much

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow me on Twitter

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 442 other followers

%d bloggers like this: