16 lines
414 B
SQL
16 lines
414 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`proc_changedPrivs`()
|
|
BEGIN
|
|
SELECT s.*
|
|
FROM proc_privs s
|
|
LEFT JOIN mysql.procs_priv p
|
|
ON p.`Host` = s.`Host`
|
|
AND p.`Host` = s.`Host`
|
|
AND p.`Db` = s.`Db`
|
|
AND p.`User` = s.`User`
|
|
AND p.`Routine_name` = s.`Routine_name`
|
|
AND p.`Routine_type` = s.`Routine_type`
|
|
WHERE p.Proc_priv IS NULL;
|
|
END$$
|
|
DELIMITER ;
|