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 »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Extra trigger permissions
Pages: [1]

Author Topic: Extra trigger permissions  (Read 862 times)

pcoutas

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: WordPress 3.9.1
  • MySQL version: 5.5.32
Extra trigger permissions
January 18, 2014, 11:05:38 pm
After going through the install instructions, the page on MySQL Permissions is a bit hard to follow.

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+MySQL+Permission+Requirements

I understand that I need to add an extra trigger because my version of MySQL is 5.5.32.

When I cut'n'paste the trigger into the "Triggers" section in phpMyAdmin (I assume this is the place for it to go!), I get the following error:

Quote
MySQL said: #1422 - Explicit or implicit commit is not allowed in stored function or trigger

What does this mean, and what should I do? Is it necessary to add these triggers somewhere? Where? :)

The page authors have written "More information on triggers is available in the MySQL documentation about Binary Logging of Stored Programs. The MariaDB manual also has good documentation on binary logging." at the bottom of the page, but those documents are written for people who know what they're doing... which I clearly do not! :)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Extra trigger permissions
January 20, 2014, 09:36:30 am
What precisely did you cut and paste?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

pcoutas

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: WordPress 3.9.1
  • MySQL version: 5.5.32
Re: Extra trigger permissions
January 21, 2014, 04:04:17 am
On the wiki page (http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+MySQL+Permission+Requirements), it says:

Quote
If your version of MySQL is greater than 5.1.6 you will need the following for all typical uses of CiviCRM 4.3+ including installing extensions:

Code: [Select]
NOTE: The extra TRIGGER permission.-- Assuming a database called "civicrm" and a user called "civicrm_user"
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, TRIGGER, CREATE ROUTINE, ALTER ROUTINE ON civicrm.* TO 'civicrm_user'@'localhost' IDENTIFIED BY 'realpasswordhere';

That's the bit I copied (and changed to use my info/settings).

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Extra trigger permissions
January 21, 2014, 04:29:45 am
Try running just the line:

Code: [Select]
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, TRIGGER, CREATE ROUTINE, ALTER ROUTINE ON civicrm.* TO 'civicrm_user'@'localhost' IDENTIFIED BY 'realpasswordhere';
in the SQL tab, not the Triggers tab.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Extra trigger permissions

This forum was archived on 2017-11-26.