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