Answers.Body: <p>You'll need database access and grant all permissions to the user 'pascrm49_drupa86'@'localhost' for the 'pascrm49_civicrm' database.</p>
  <p>Something like</p>
  <p>grant all on 'pascrm49_civicrm' to 'pascrm49_drupa86'@'localhost';</p>
  <p>Theres probably an official direction somewhere but this is just to get you out of a bind if your civicrm install is broken.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-23T16:10:58.280Z
Answers.Text: thanks, I couldn't find a way of altering the permissions. but I did a back up and restored a previous version which seems to have resolved the issue.
Answers.UserDisplayName: Jennifer MacNab
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-23T12:01:30.993Z
Answers.LastActivityDate: 2021-02-23T12:01:30.993Z
Answers.UserDisplayName: Parvez Saleh
Body: <p>Initialization Error</p>
  <p>Array
  (
  [callback] =&gt; Array
  (
  [0] =&gt; CRM_Core_Error
  [1] =&gt; simpleHandler
  )</p>
  <pre><code>[code] =&gt; -24
  [message] =&gt; DB Error: connect failed
  [mode] =&gt; 16
  [debug_info] =&gt;  [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [type] =&gt; DB_Error
  [user_info] =&gt;  [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [to_string] =&gt; [db_error: message=&quot;DB Error: connect failed&quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&quot;&quot; info=&quot; [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']&quot;]
  </code></pre>
  <p>)
  Initialization Error</p>
  <p>Array
  (
  [callback] =&gt; Array
  (
  [0] =&gt; CRM_Core_Error
  [1] =&gt; simpleHandler
  )</p>
  <pre><code>[code] =&gt; -24
  [message] =&gt; DB Error: connect failed
  [mode] =&gt; 16
  [debug_info] =&gt;  [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [type] =&gt; DB_Error
  [user_info] =&gt;  [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [to_string] =&gt; [db_error: message=&quot;DB Error: connect failed&quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&quot;&quot; info=&quot; [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']&quot;]
  </code></pre>
  <p>)</p>
  
Tags: <drupal><siteground>
Title: on logging into civi we are getting the following error message, can anyone direct me as to a solution?
ThreadText: # on logging into civi we are getting the following error message, can anyone direct me as to a solution?
  
  (Asked by: username_0 on 2021-02-23)
  
  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 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [type] => DB_Error
  [user_info] =>  [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [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 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']"]
  
  ```
  
  )
  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 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [type] => DB_Error
  [user_info] =>  [nativecode=Access denied for user 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']
  [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 'pascrm49_drupa86'@'localhost' to database 'pascrm49_civicrm']"]
  
  ```
  
  )
  
  **Tags:** drupal, siteground
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-02-23. Score: 1
  
  You'll need database access and grant all permissions to the user 'pascrm49\_drupa86'@'localhost' for the 'pascrm49\_civicrm' database.
  
  Something like
  
  grant all on 'pascrm49\_civicrm' to 'pascrm49\_drupa86'@'localhost';
  
  Theres probably an official direction somewhere but this is just to get you out of a bind if your civicrm install is broken.
  
  > **Comments:**
  > **username_0**: thanks, I couldn't find a way of altering the permissions. but I did a back up and restored a previous version which seems to have resolved the issue.  
  
  ---
  
  