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) »
  • Could not create a trigger
Pages: [1]

Author Topic: Could not create a trigger  (Read 1014 times)

kkvgbg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: 4.1
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Could not create a trigger
January 20, 2015, 05:57:14 am
Good afternoon all!

My CiviCRM install hit a snag when I got a "Could not create a trigger" warning during install - it's the only remaining error, and I'm confounded as to what to do now. I know next to nothing about SQL, so might be poking the wrong things with my noob-stick, and would appreciate suggestions.

I've read this part in the guide: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+MySQL+Permission+Requirements
and I've tried to run the query

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';

through PHPmyadmin, substituting "civicrm" "civicm_user" and "localhost" with my settings (which show green in the install window, so ought to be correct) but get the error

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'civicrm.* TO 'civicrm_user'@'localhost' IDENTIFIED BY 'realpassowrdhere'' at line 1.

I've tried leaving the "localhost" in place of the server-name, and I've tried with and without the accents (the ' signs around the names) but get syntax errors regardless. I've read some posts that TRIGGER creation must be enabled by the host, but as far as I can tell this is a syntax error, not a permission error. (yet)

I've also found this post http://forum.civicrm.org/index.php/topic,31348.msg134499.html#msg134499 - but it repeats the advice from the official documentation and results in the same error as above.

In this post: http://forum.civicrm.org/index.php?topic=29319.0 there's advice on pasting
log-bin-trust-function-creators = 1
into my.cnf, but I've yet to find that file (if I can access it at all - I might have to check with the host).

Is this latter suggestion the simplest way to go about solving this? I'd appreciate your advice.

Kind regards
Mateusz

kkvgbg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: 4.1
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Re: Could not create a trigger
January 20, 2015, 07:35:21 am
Bah! I just checked with my host and they don't allow TRIGGERs, so am looking for a workaround. Possibly I'll just have to host the DB somewhere else, so recommendations are welcome. (I'm looking through the service provider list https://civicrm.org/providers but would appreciate any suggestions)

Cheers
Mateusz

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Could not create a trigger
January 20, 2015, 08:14:54 am
Generally speaking, the main recommendation given on these forums is to consult that list. You would have to ask the various providers if they allow remote connections to MySQL if you plan to host only the database remotely.
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.

kkvgbg

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: 4.1
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Re: Could not create a trigger
January 21, 2015, 12:34:06 am
Good morning,

Thanks for the comment - I hadn't decided on CiviCRM when we moved host recently, so didn't think of checking this. Also, the host (Binero.se) is generally well regarded in Sweden so I assumed they'd be able to offer whatever. Silly of me.

Cheers
M

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

This forum was archived on 2017-11-26.