?
Solved

Problems moving magento from site

Posted on 2013-11-19
3
Medium Priority
?
626 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
fibo earned 2000 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…
Suggested Courses

765 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