Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to change DB name, user and pass
 
ramirors
Jr. Member
 
Total Posts:  9
Joined:  2007-09-04
 

Hi, i need to change the name, user and password of my magento DB, how can I do this....

I realy can´t reinstall magento....i just need to change this conf, just fot security matters....

Thank for your help!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

update app/etc/local.xml in both places

 
Magento Community Magento Community
Magento Community
Magento Community
 
SeL_
Magento Team
 
Avatar
Total Posts:  1140
Joined:  2007-10-10
Paris, France
 

Hi,

In the file app/etc/local.xml

<resources>
            <
db>
                <
table_prefix>{{db_prefix}}</table_prefix>
            </
db>
            <
default_setup>
                <
connection>
                    <
host>{{db_host}}</host>
                    <
username>{{db_user}}</username>
                    <
password>{{db_pass}}</password>
                    <
dbname>{{db_name}}</dbname>
                    <
active>1</active>
                </
connection>
            </
default_setup>
            <
default_write>
                <
connection>
                    <
host>{{db_host}}</host>
                    <
username>{{db_user}}</username>
                    <
password>{{db_pass}}</password>
                    <
dbname>{{db_name}}</dbname>
                    <
active>1</active>
                </
connection>
            </
default_write>
         </
resources>
 
Magento Community Magento Community
Magento Community
Magento Community
 
ramirors
Jr. Member
 
Total Posts:  9
Joined:  2007-09-04
 

Thanks, i did the change but I get this error (screenchot attach)....

Its still using the old conf....

Image Attachments
screen.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
ramirors
Jr. Member
 
Total Posts:  9
Joined:  2007-09-04
 

any help will be greate!!!

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