Friday, July 08, 2016

Change the stored Procedure Definer




 Change Views DEFINER without ALTER VIEW:
UPDATE `mysql`.`proc` p SET definer = ‘root@localhost’ WHERE definer=’root@foobar’ AND db=’whateverdbyouwant’;

Turn off variable automatic_sp_privileges, to Preseve Execute permissions for MySQL procedure with alter procedure.

set global automatic_sp_privileges  = 0;

1 comment:

Unknown said...
This comment has been removed by the author.

Optimizing the Linux (OS) for Database

Optimizing the Linux (OS) for Database Optimizing the operating system (OS) for a Database Server/MySQL server involves configuring various ...