title: Magento Error - SQLSTATE[HY000] [1045] Access denied for user
body: <p>I had a <code>magento</code> site live and up and running and then out of nowhere I got: </p>
  
  <pre><code>Exception printing is disabled by default for security reasons.
  </code></pre>
  
  <p>After some research into the issue I changed a file name in /errors directory file: local.xml.sample to local.xml and got the following errors (pasted below) also in the title was written above the text pasted below. </p>
  
  <p>The site was working fine, I was changing some shipping settings after installing a new shipping extension from WebShopapps and then all of a sudden this occurred. Not sure where to even start.</p>
  
  <p>Trace:</p>
  
  <pre><code>#0 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(54845): Zend_Db_Adapter_Pdo_Abstract-&gt;_connect()
  #1 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(55325): Zend_Db_Adapter_Pdo_Mysql-&gt;_connect()
  #2 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(53532): Varien_Db_Adapter_Pdo_Mysql-&gt;_connect()
  #3 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(54588): Zend_Db_Adapter_Abstract-&gt;query('SET NAMES utf8', Array)
  #4 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(55433): Zend_Db_Adapter_Pdo_Abstract-&gt;query('SET NAMES utf8', Array)
  #5 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(29736): Varien_Db_Adapter_Pdo_Mysql-&gt;query('SET NAMES utf8')
  #6 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(29677): Mage_Core_Model_Resource-&gt;_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
  #7 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12129): Mage_Core_Model_Resource-&gt;getConnection('core_write')
  #8 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12159): Mage_Core_Model_Resource_Db_Abstract-&gt;_getConnection('write')
  #9 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12144): Mage_Core_Model_Resource_Db_Abstract-&gt;_getWriteAdapter()
  #10 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(12169): Mage_Core_Model_Resource_Db_Abstract-&gt;_getReadAdapter()
  #11 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(31766): Mage_Core_Model_Resource_Db_Abstract-&gt;getReadConnection()
  #12 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(23841): Mage_Core_Model_Resource_Db_Collection_Abstract-&gt;__construct(Object(Mage_Core_Model_Resource_Website))
  #13 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(23873): Mage_Core_Model_Config-&gt;getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
  #14 /home/eyesocialeyes/public_html/tilebuyersoutlet/app/Mage.php(491): Mage_Core_Model_Config-&gt;getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
  #15 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(5861): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
  #16 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(5866): Mage_Core_Model_Abstract-&gt;getResourceCollection()
  #17 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(20719): Mage_Core_Model_Abstract-&gt;getCollection()
  #18 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(20577): Mage_Core_Model_App-&gt;_initStores()
  #19 /home/eyesocialeyes/public_html/tilebuyersoutlet/includes/src/__default.php(20460): Mage_Core_Model_App-&gt;_initCurrentStore('', 'store')
  #20 /home/eyesocialeyes/public_html/tilebuyersoutlet/app/Mage.php(684): Mage_Core_Model_App-&gt;run(Array)
  #21 /home/eyesocialeyes/public_html/tilebuyersoutlet/index.php(87): Mage::run('', 'store')
  #22 {main}
  </code></pre>