no

magento SQLSTATE[HY000] [2013] Lost connection to MySQL server

I have this unusual error when I printed the error caught in Mage::run method. I've already setup my database connection settings in a...

I have this unusual error when I printed the error caught in Mage::run method.

I've already setup my database connection settings in app/etc/local.xml, but unfortunately I still have this error. What I found out was there is another configuration file for mysql app/etc/config.xml

So all I did was make sure that the value in the 2 database connection settings are the same.

Find these lines and replace there values:


<default_setup>
  <connection>
    <host><![CDATA[localhost]]></host>
    <username><![CDATA[username]]></username>
    <password><![CDATA[password]]></password>
    <dbname><![CDATA[database_name]]></dbname>
    <active>1</active>
  </connection>
</default_setup>

Related

server management 3731785950660185179

Post a Comment

item