Report this

What is the reason for this report?

magento moving from shared hosting to localhost and VPS

Posted on May 20, 2015

After move I cant get this work. I am getting error:

Still trying to connect to ‘mysql1.myhost.ie’ but the local.xml has host: localhost. cache and session folder is empty. htaccess file is default. can you help me ? I am using Ubuntu with ISPconfig Cpanel and Apache

a:4:{i:0;s:80:"SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'mysql1.myhost.ie' (110)";i:1;s:2613:"#0  ......

my local.xml is:

<host><![CDATA[localhost]]></host>

so I dont understand why wants to connect to ‘mysql1.myhost.ie’. var and cache is empty



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It seems that Magento 1.x versions will in fact load any file from the app/etc/ with the .xml file extension. So there is likely a backup of your old configuration that is being loaded and taking precedence. This in depth post goes into some detail about how those files are loaded and interpreted:

The while loop will go through the remaining XML files and load each one. If you’ve ever accidentally copied another XML file into the app/etc folder and had weird things happen, this is the reason for that weirdness. Magento will load ANY file that ends in .xml.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.