DROP FUNCTION IF EXISTS account.myUserGetName; DELIMITER $$ CREATE DEFINER=`root`@`%` FUNCTION `account`.`myUserGetName`() RETURNS varchar(30) CHARSET utf8 NO SQL DETERMINISTIC BEGIN /** * @deprecated Use myUser_getName() */ RETURN myUser_getName(); END$$ DELIMITER ; GRANT EXECUTE ON FUNCTION account.myUserGetName TO guest@localhost;