Answers.Body: <p>Finally, I have deleted my CiviCRM DB from the Settings Sources, then recreated it, and it seems to work now.</p>
  
  <p>I may have entered bad credentials, but the error message is not very explanatory.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-12T07:37:36.577Z
Answers.LastActivityDate: 2017-05-12T07:37:36.577Z
Answers.UserDisplayName: Jacques-Marie Moranne
Body: <p>I use the Backup &amp; Migrate Drupal Module</p>
  
  <p>I realize that I have never had my CiviCRM DB saved, though it is mentionned in the Sources Backup configuration list.</p>
  
  <p>I have only one Settings Profile, which only contains "Default Settings" / "Default DataBase" (which I understand to be the Drupal DB).</p>
  
  <p>If I want to "override" the existing Setting or "Create a New Profile", I get the following message :</p>
  
  <p>"The Web site has encountered an unexpected error ; please try later".</p>
  
  <p>Is there any expectable reason ?</p>
  
  <p>(Currently in Drupal 7.54)</p>
  
  <p>--------------------------- Edited 04/19/2017</p>
  
  <p>I have submitted the problem to CiviHosting : this is their answer :</p>
  
  <p><em>"I enabled logging for your site and the error is this:
  PDOException: SQLSTATE[HY000] [1045] Access denied for user 'XXXXX'@'' (using
  password: YES) in backup_migrate_source_db->_get_db_connection() (line 213 of
  /home/XXXXX/www/www/sites/all/modules/backup_migrate/includes/sources.db.inc).
  which I do not understand as the XXXXX has access to both the CiviCRM and the
  Drupal database."</em></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-01T18:24:28.200Z
Comments.Text: Can you check your apache server logs for more information?
Comments.UserDisplayName: Kboy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-04T15:49:05.937Z
Comments.Text: Thank you for your quick answer : how can I check the server logs (I am not a developper, but my hoster provides a cpanel)
Comments.UserDisplayName: Jacques-Marie Moranne
Tags: <backups>
Title: Cannot Backup my CiviCRM DataBase due to an Unexpected Error
ThreadText: # Cannot Backup my CiviCRM DataBase due to an Unexpected Error
  
  (Asked by: username_0 on 2017-03-01)
  
  I use the Backup & Migrate Drupal Module
  
  I realize that I have never had my CiviCRM DB saved, though it is mentionned in the Sources Backup configuration list.
  
  I have only one Settings Profile, which only contains "Default Settings" / "Default DataBase" (which I understand to be the Drupal DB).
  
  If I want to "override" the existing Setting or "Create a New Profile", I get the following message :
  
  "The Web site has encountered an unexpected error ; please try later".
  
  Is there any expectable reason ?
  
  (Currently in Drupal 7.54)
  
  --------------------------- Edited 04/19/2017
  
  I have submitted the problem to CiviHosting : this is their answer :
  
  *"I enabled logging for your site and the error is this:
  PDOException: SQLSTATE[HY000] [1045] Access denied for user 'XXXXX'@'' (using
  password: YES) in backup\_migrate\_source\_db->\_get\_db\_connection() (line 213 of
  /home/XXXXX/www/www/sites/all/modules/backup\_migrate/includes/sources.db.inc).
  which I do not understand as the XXXXX has access to both the CiviCRM and the
  Drupal database."*
  
  **Tags:** backups
  
  > **Comments:**
  > **username_1**: Can you check your apache server logs for more information?  
  > **username_0**: Thank you for your quick answer : how can I check the server logs (I am not a developper, but my hoster provides a cpanel)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-05-12. Score: 1 | Accepted answer
  
  Finally, I have deleted my CiviCRM DB from the Settings Sources, then recreated it, and it seems to work now.
  
  I may have entered bad credentials, but the error message is not very explanatory.
  
  
  ---
  
  