site is working on localhost and shared hosting but on VPS with digital ocean and ISPconfig getting error. getting error and report log is a:5:{i:0;s:78:"SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'mysql1.myhost.ie' . the website is with VPS and local.xml host is <host><![CDATA[localhost]]></host> . if i delete local.xml the issue is same. cache and session folder is empty
mysql1.myhost.ie if that is what you have set for the db in the xml file try "localhost" instead. Magento is tricky stuff. I would probably have to crawl in there to fix that. Its hard to flesh it out otherwise. Hope that helps, Nigel
as you as you can see in my local.xml is <host><![CDATA[localhost]]></host> . Thats localhost so dont understand what is pointing to mysql1.myhost.ie
Have you tried using server IP instead of localhost .. can be due to hostname not resolving to correct IP address.
SOLVED! there was another files in app/etc. like old-local.xml so magento was using from cache this file instead of local.xml. i deleted all files and leave just local.xml