Solved

Problems moving magento from site

Posted on 2013-11-19
3
562 Views
Last Modified: 2016-03-02
Hi.

We are trying to migrate a magento site. We copied all files, we copied database, and we configures local.xml file with new db connection data. We also deleted the cache folder.

You can see the error at http://lypsso.com: SQLSTATE[28000] [1045] Access denied for user 'lypsso_magento'@'localhost' (using password: YES)

our local.xml file has this:

<config>
    <global>
        <install>
            <date><![CDATA[Tue, 12 Jun 2012 15:30:43 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[095e09f0afd0a391a58bcf26e12c6a52]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[lypsso]]></username>
                    <password><![CDATA[our strange password here]]></password>
                    <dbname><![CDATA[lypsso_old]]></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>

Open in new window


You can see we have we are trying to connect with user lypsso, but lypsso_magento is being used instead. Why?
0
Comment
Question by:gplana
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
fibo earned 500 total points
Comment Utility
Seems the old user name might be hard coded.
To clarify this, search for the string lypsso_magento in all your files
0
 
LVL 15

Author Closing Comment

by:gplana
Comment Utility
Your idea was great. I found a file on app/etc/local_old.xml which has this string. I remove this file and then all works ok. I don't really understand why system takes parameters from local_old.xml but the important is that now it is working.

Thank you very much.
0
 
LVL 29

Expert Comment

by:fibo
Comment Utility
B-) Glad it worked, thax for the grade and points.
I remember some nightmares with suprises like yours.

B-) now look for the string "local_old" in your files, there might reside some part of the problem (and of course, recurse the problem, commenting out all the ellements in the different files)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now