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'