From 11f8b46a23d06d876625c0ec8400be1d2a7e6064 Mon Sep 17 00:00:00 2001 From: nroman Date: Tue, 21 May 2019 10:27:18 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20cas=20colonne=20create=20function=20nul?= =?UTF-8?q?le=20pour=20proc=C3=A9dures/fonctions=20stock=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL/Troubleshooting.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/HowtoMySQL/Troubleshooting.md b/HowtoMySQL/Troubleshooting.md index 0864a081..b03621f4 100644 --- a/HowtoMySQL/Troubleshooting.md +++ b/HowtoMySQL/Troubleshooting.md @@ -737,3 +737,17 @@ Si une requête LOAD DATA LOCAL INFILE est faite par un script ou un applicatif [client] loose-local-infile=1 ~~~ + +## Colonne Create Function à nulle lors de l'appel de procédures stockées + +Avec Mysql < 8.x, lors de l'utilisation de SHOW CREATE PROCEDURE ou SHOW CREATE FUNCTION, si la colonne Create Function renvoie NULL, il faut accorder à l'utilisateur les droits SELECT sur la table mysql.proc : + +~~~ +GRANT SELECT ON mysql.proc TO user; +~~~ + +Pour MySQL >= 8.x, les droits SELECT globaux sont nécessaires. + +[Documentation 5.7](https://dev.mysql.com/doc/refman/5.7/en/show-create-procedure.html) + +[Documentation 8.0](https://dev.mysql.com/doc/refman/8.0/en/show-create-procedure.html)