Try the Demo

Magento Forum

   
How can I change the data base name in magento
 
subhadeep_cyg
Jr. Member
 
Total Posts:  2
Joined:  2013-02-14
 

I want connect a different database for the magento cms which i have been priviously installed

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anshu_Mishra
Sr. Member
 
Total Posts:  96
Joined:  2012-04-23
India
 

Go to magento root directory then move to app/etc/local.xml

this local.xml contains your db connection.

node <dbname> contains the database name.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Monty22
Enthusiast
 
Avatar
Total Posts:  802
Joined:  2013-01-01
 

Hi,

If you want to change the MySQL database connection details such as hostname, database name, username etc of a Magento Store, you need to edit the following file for that. If its in a web server, connect using a FTP software and download the file, edit it and upload back.

/app/etc/local.xml

<connection>

<
host><![CDATA[hostname]]></host>

<
username><![CDATA[DB username]]></username>

<
password><![CDATA[DB pwd]]></password>

<
dbname><![CDATA[DB name]]></dbname>

<
active>1</active>

</
connection>

If you need any kind of help you can contact us as we are one of best Magento extensions developer.

Thanks

Monty
iLoveMage

Get 25% discount all our Magento Extensions.

 Signature 

Get 15% discount on all our extensions Use code MON15 | Services ||

||

 
Magento Community Magento Community
Magento Community
Magento Community
 
IndiesWebs
Sr. Member
 
Avatar
Total Posts:  167
Joined:  2011-08-17
 

Hi,

If you want to change database name of Magento that is easy. First create a new database and transfer data from old database to new database.

Now change the name from Magento configuration. For that you have to make changes in local.xml available at ‘magento/app/etc/local.xml’ and change here.

<connection>

<
host><![CDATA[hostname]]></host>

<
username><![CDATA[DB username]]></username>

<
password><![CDATA[DB pwd]]></password>

<
dbname><![CDATA[DB name]]></dbname>

<
active>1</active>

</
connection>

 Signature 

Magento Extensions
By Indies Services

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top