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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Enable civilogging WITH mysql binary logging
Pages: [1]

Author Topic: Enable civilogging WITH mysql binary logging  (Read 539 times)

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Enable civilogging WITH mysql binary logging
April 02, 2012, 03:43:09 am
I want to have civicrm logging enabled, AND binary logging in the database because of our master/slave setup.
I do not want SUPER privilege, because of security.

When I look in MYSQL documentation there seems to be a way out
http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_log_bin_trust_function_creators

"It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log. "
This also applies for triggers.

Does anyone know if the civicrm triggers used for logging (and probably multi-language) are safe regarding the binary log?
Here's some more information
http://dev.mysql.com/doc/refman/5.1/en/stored-programs-logging.html

The triggers should be "deterministic".

If civicrm can confirm this we should be able to use variable "log_bin_trust_function_creators"

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: Enable civilogging WITH mysql binary logging
April 02, 2012, 06:37:40 am

All the civi triggers created are very "determinisitic" as far as i understand the meaning of the word

(i.e. the same data sequene will cause the triggers to do exactly the same thing)

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

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: Enable civilogging WITH mysql binary logging
April 02, 2012, 06:41:26 am
Thank you.

I will use this variable on a test environment.

Will let you the results.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Enable civilogging WITH mysql binary logging

This forum was archived on 2017-11-26.