Solved

Problems moving magento from site

Posted on 2013-11-19
3
595 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
ID: 39661657
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
ID: 39661810
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
ID: 39662284
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.

830 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