Solved

Problems moving magento from site

Posted on 2013-11-19
3
586 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
Learn about the eCommerce marketing trends for the year ahead.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

808 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