Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

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 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>

magento SQLSTATE[HY000] [2013] Lost connection to MySQL server magento SQLSTATE[HY000] [2013] Lost connection to MySQL server Reviewed by czetsuya on Saturday, October 03, 2009 Rating: 5

No comments:

Powered by Blogger.