Answers.Body: <p>The failure you're seeing is because the MySQL credentials are no good.  These are set in the civicrm.settings.php file.  Did you possibly restore a backup that didn't include the civicrm.settings.php file that was in place when it was working?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-11T07:09:28.547Z
Answers.LastActivityDate: 2015-12-11T07:09:28.547Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Earlier today I did a backup and restore on a Wordpress website. After the restore was successful, I noticed I could no longer access or edit my posts/pages in the Wordpress Dashboard. And I noticed CiviCRM throwing this error:</p>
  
  <pre><code>Initialization Error
  
  Array
  (
  [callback] =&gt; Array
  (
  [0] =&gt; CRM_Core_Error
  [1] =&gt; simpleHandler
  )
  
  [code] =&gt; -24
  [message] =&gt; DB Error: connect failed
  [mode] =&gt; 16
  [debug_info] =&gt; [nativecode=Access denied for user 'user'@'localhost' (using password: YES)]
  [type] =&gt; DB_Error
  [user_info] =&gt; [nativecode=Access denied for user 'user'@'localhost' (using password: YES)]
  [to_string] =&gt; [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=Access denied for user 'user'@'localhost' (using password: YES)]"]
  )
  </code></pre>
  
  <p>I've since tried reverting to the website instance that existed prior to the restore, when Civi was still working perfectly, and the same error still exists. I've disabled Civi and have regained the ability to edit posts/pages, but Civi remains broken.</p>
  
Tags: <wordpress><error>
Title: Initialization Error After Backing Up Wordpress
ThreadText: # Initialization Error After Backing Up Wordpress
  
  (Asked by: username_0 on 2015-12-11)
  
  Earlier today I did a backup and restore on a Wordpress website. After the restore was successful, I noticed I could no longer access or edit my posts/pages in the Wordpress Dashboard. And I noticed CiviCRM throwing this error:
  
  ```
  Initialization Error
  
  Array
  (
  [callback] => Array
  (
  [0] => CRM_Core_Error
  [1] => simpleHandler
  )
  
  [code] => -24
  [message] => DB Error: connect failed
  [mode] => 16
  [debug_info] => [nativecode=Access denied for user 'user'@'localhost' (using password: YES)]
  [type] => DB_Error
  [user_info] => [nativecode=Access denied for user 'user'@'localhost' (using password: YES)]
  [to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=Access denied for user 'user'@'localhost' (using password: YES)]"]
  )
  
  ```
  
  I've since tried reverting to the website instance that existed prior to the restore, when Civi was still working perfectly, and the same error still exists. I've disabled Civi and have regained the ability to edit posts/pages, but Civi remains broken.
  
  **Tags:** wordpress, error
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-12-11. Score: 3
  
  The failure you're seeing is because the MySQL credentials are no good. These are set in the civicrm.settings.php file. Did you possibly restore a backup that didn't include the civicrm.settings.php file that was in place when it was working?
  
  
  ---
  
  