Question

I would like to create a view in Drupal to list civicrm contact details.
We need to copy code from Administer->system settings->CMS database Integration paste it in sites/default/settings.php.. I did so the way it was suggested. I am getting the following error.

SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'drupaluser'@'localhost' for table 'civicrm_contact'
Was it helpful?

Solution

I can't tell for sure without seeing your settings.php, but it sounds like the user for the Drupal database "drupaluser@localhost" doesn't have permissions over your CiviCRM database. Grant that permission in MySQL, and you ought to be set.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top