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) »
  • CiviCase installation - database permissions
Pages: [1]

Author Topic: CiviCase installation - database permissions  (Read 918 times)

homebrewruss

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
CiviCase installation - database permissions
March 11, 2013, 06:29:55 am
We've just come up against a problem installing CiviCase on a pre exisiting CiviCRM installation and I thought I'd post this up for anyone else that runs into the same issue.
Every time we tried to enable CiviCase we would get the error 'Could not create Case views'.

After much head scratching and looking back though the code we traced this back to insufficient permissions for the database user account we had set up.

We usually use the recommended database permissions for Drupal 7 for the CiviCRM database eg.
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, CREATE TEMPORARY TABLES ON `database`.* TO 'database_user'@'localhost' IDENTIFIED BY 'password';

However it seems that (at least during set up) CiviCase requires the additional permission 'CREATE VIEW' so if you're running your civi database with a user without ALL PRIVILEGES make sure you grant this additional permission to your database user to ensure you can run CiviCase ok.

Russ

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCase installation - database permissions
March 11, 2013, 07:55:19 am

Can you please file an issue for this. We should clarify the error message and let the user know it was a mysql error most likely related to permisioning

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

homebrewruss

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviCase installation - database permissions
March 11, 2013, 08:31:20 am
No problem - issue now filed.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCase installation - database permissions

This forum was archived on 2017-11-26.