title: Cannot connect to Joomla DB but can access administrator panel
body: <p>I have a new Joomla (2.5) site that has been developed on a different host/server which is working fine. I am trying to get it moved onto my host.</p>
  
  <p>I have been through the normal process, files uploaded via FTP, database exported and imported using PHPmyadmin (I can provide the version of PHPmyadmin it has been exported from is an earlier version if this makes a difference?) Finally the <code>configuration.php</code> file has been edited to include the correct host, db, user and password information.</p>
  
  <p>When I try to navigate to the website, I get the following error:</p>
  
  <pre><code>500 - JDatabase::getInstance: Could not connect to database
  joomla.library: 2 - Could not connect to MySQL.
  </code></pre>
  
  <p>Though I can navigate to the /administrator page and browser the back end / control panel and pages of the website.</p>
  
  <p>Turning on the debug function, I get the following:</p>
  
  <pre><code>JDatabase::getInstance: Could not connect to database
  joomla.library: 2 - Could not connect to MySQL.
  
  Call stack
  #   Function    Location
  1   JSite-&gt;render() JROOT/index.php:48
  2   JDocumentHTML-&gt;render() JROOT/includes/application.php:261
  3   JDocumentHTML-&gt;_renderTemplate()    JROOT/libraries/joomla/document     /html/html.php:433
  4   JDocumentHTML-&gt;getBuffer()  JROOT/libraries/joomla/document/html/html.php:655
  5   JDocumentRendererModules-&gt;render()  JROOT/libraries/joomla/document    /html/html.php:371
  6   JDocumentRendererModule-&gt;render()   JROOT/libraries/joomla/document    /html/renderer/modules.php:39
  7   JModuleHelper::renderModule()   JROOT/libraries/joomla/document/html/renderer    /module.php:106
  8   include()   JROOT/libraries/joomla/application/module/helper.php:175
  9   JError::raiseError()    JROOT/modules/mod_wpposts/mod_wpposts.php:31
  10  JError::raise() JROOT/libraries/joomla/error/error.php:251
  </code></pre>
  
  <p>I am not a developer, and do not understand any of the above! I have moved / copied another couple of sites without issue, but these were on the same host/server.</p>