To update all stored procedure definer:
Syntax:
UPDATE `mysql`.`proc` p SET definer = 'user@%'
WHERE definer='root@%'
Example:
UPDATE `mysql`.`proc` SET definer = 'root@localhost'
UPDATE `mysql`.`proc` SET definer = 'root@localhost' where db='DbName'
0 Comments