DROP FUNCTION IF EXISTS account.myUserGetId; DELIMITER $$ CREATE DEFINER=`root`@`%` FUNCTION `account`.`myUserGetId`() RETURNS int(11) READS SQL DATA DETERMINISTIC BEGIN /** * @deprecated Use myUser_getId() */ RETURN myUser_getId(); END$$ DELIMITER ; GRANT EXECUTE ON FUNCTION account.myUserGetId TO guest@localhost;