Is `definer` required when creating a stored procedure?

前端 未结 3 1015
遇见更好的自我
遇见更好的自我 2021-02-02 08:54

I\'ve written all of MySQL procedures as root@localhost:

CREATE DEFINER=`root`@`localhost` PROCEDURE `p_add_user`(...)

Trouble is,

3条回答
  •  无人及你
    2021-02-02 09:03

    CREATE DEFINER=[your_web_user]@% PROCEDURE p_add_user(...)
    

    Check it.. probably this will help you, if you want to define the user in your procedure...

提交回复
热议问题