CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • username / password with multisite
Pages: [1]

Author Topic: username / password with multisite  (Read 1347 times)

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
username / password with multisite
December 23, 2009, 02:08:27 am
I have a multisite installation with two websites sharing the same civicrm database. However when drupal wants to query it (with views) it will use the username of the drupal database wich does not exist on the civicrm database (and cannot be added).

Is there a way to put in the drupal settings.php a username/password for the prefix tables?

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: username / password with multisite
December 23, 2009, 12:48:10 pm
solved the issue for now by putting the new database under the same user as the other website. Not the nicest solution but it works for now.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: username / password with multisite
January 11, 2010, 03:38:07 am
Quote from: andro01 on December 23, 2009, 02:08:27 am
I have a multisite installation with two websites sharing the same civicrm database. However when drupal wants to query it (with views) it will use the username of the drupal database wich does not exist on the civicrm database (and cannot be added).

I don’t think there’s a good solution in your case; the whole idea of user permissions is that Drupal works with the permissions of its (db) user, and if you want Drupal to query CiviCRM via views, then you need to allow Drupal’s db user to select from CiviCRM’s tables. This is how it’s supposed to work, so I doubt there’s a sane workaround.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • username / password with multisite

This forum was archived on 2017-11-26.