In creating a new currency import option, I inadvertently replaced the local.xml file on my dev site with the one on my live site, causing the dev site to redirect to the live site. I think I have fixed this but would like a further explanation as to what this file actually does and what I may have changed by copying the live file onto the dev site (I fixed it by changing the database login information, but it would be nice to know if there was anything I had missed).

Can anyone help?

1 Answer 1


In Local.xml file magento store the database information host details of the site while installing.

Just have look on your local.xml file.

You need to change the following

        <initStatements><![CDATA[SET NAMES utf8]]></initStatements>

Host tag your host name

username tag DataBase User Name

password tag DataBase password

dbname tag Site DataBase Name

Change these things for your dev server.

NOTE: If this file readable to all then Hackers can easily hack your site


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.