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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • DB Error: insufficient permissions [solved]
Pages: [1]

Author Topic: DB Error: insufficient permissions [solved]  (Read 16543 times)

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
DB Error: insufficient permissions [solved]
May 10, 2013, 09:55:22 am
I'm using 4.3.2 and I'm getting a "DB Error: insufficient permissions" error when trying to create any record in CiviCRM. So far tested creating a new contact and new event.
The event does end up being created, the contact does not.

The civicrm db is called dev_civicrm, the user is dev_civicrm as well.
Here's the grants that mysql has:

Code: [Select]
mysql> show grants for dev_civicrm@localhost;
+--------------------------------------------------------------------------------------------------------------------+
| Grants for dev_civicrm@localhost                                                                                   |
+--------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'dev_civicrm'@'localhost' IDENTIFIED BY PASSWORD '*yadayada' |
| GRANT ALL PRIVILEGES ON `dev_civicrm`.* TO 'dev_civicrm'@'localhost'                                               |
+--------------------------------------------------------------------------------------------------------------------+

I've cleared drupal and civicrm caches (civicrm/clearcache).

Suggestions?
It's something silly but I can't figure out what.
« Last Edit: May 10, 2013, 11:46:09 am by llaen »

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Re: DB Error: insufficient permissions
May 10, 2013, 11:45:49 am
Figured it out.
The db was a dump from another user/db and everything was fine but there were database triggers that used the old username so it was trying to write to the db using that.

osxxso

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: DB Error: insufficient permissions [solved]
August 30, 2013, 03:21:02 am
Could you reply with details on how to this fix the trigger issue?  Thanks in advance.

sdragnev

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Drupal 7
  • PHP version: 5.4
Re: DB Error: insufficient permissions [solved]
August 30, 2013, 05:42:59 am
In my case, I opened the database dump and searched and replaced the old database name with the new name I'm importing into.

You're having the same issue only if you're importing into a database with a different name than the old one.
If that's not the case, the problem is elsewhere (most likely not enough permissions for the db user).

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: DB Error: insufficient permissions [solved]
August 30, 2013, 06:29:30 am
The other issue that I've had with mysqldump was when I had some, but not all, of the permissions. The one I was missing was "Show View"
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: DB Error: insufficient permissions [solved]
October 11, 2014, 09:14:41 pm
Quick instructions: http://forum.civicrm.org/index.php/topic,34456.0.html
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • DB Error: insufficient permissions [solved]

This forum was archived on 2017-11-26.