From 22a804c27a3c801a776e250501ba570a1a87804d Mon Sep 17 00:00:00 2001 From: emorino Date: Fri, 21 Feb 2020 14:46:21 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20robl=C3=A8me=20pour=20cr=C3=A9er=20ou?= =?UTF-8?q?=20modifi=C3=A9=20des=20TRIGGER=20d'une=20base?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL/Troubleshooting.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/HowtoMySQL/Troubleshooting.md b/HowtoMySQL/Troubleshooting.md index 2ef19b1b..4aba3bc8 100644 --- a/HowtoMySQL/Troubleshooting.md +++ b/HowtoMySQL/Troubleshooting.md @@ -848,4 +848,22 @@ Voici une requêtes SQL qui indique également le ratio de fragmentation de chaq ~~~ SELECT ENGINE, concat(TABLE_SCHEMA, '.', TABLE_NAME) as table_name, round(DATA_LENGTH/1024/1024, 2) as data_length, round(INDEX_LENGTH/1024/1024, 2) as index_length, round(DATA_FREE/1024/1024, 2) as data_free, (data_free/(index_length+data_length)) as frag_ratio FROM information_schema.tables WHERE DATA_FREE > 0 ORDER BY frag_ratio DESC; +~~~ + +## Problème pour créer ou modifié des TRIGGER d'une base + +Si un utilisateur mysql veut créer ou modifié un TRIGGER, par default il ne peut pas le faire, et mysql retourne l'erreur suivante : + +~~~ +You do not have the SUPER privilege and binary logging is enabled +~~~ + +Pour qu'un utilisateur puisse créer / modifié des TRIGGER, sans avoir le privilège SUPER, et lorsque les binlogs sont activé, il faut activer la variable *log_bin_trust_function_creators* de manière globale : + +~~~ ++---------------------------------+-------+ +| Variable_name | Value | ++---------------------------------+-------+ +| log_bin_trust_function_creators | ON | ++---------------------------------+-------+ ~~~ \ No newline at end of file