Solved

Problems moving magento from site

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

726 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