[英]Mysql Stored Procedure SQLYog issue
I have setup my site in a way that I develop on localhost
and then just updates it and all is good to go then but, there is a problem with the Stored Procedures
. 我已经以在localhost
开发的方式设置了站点,然后对其进行了更新,那么一切都很好,但是Stored Procedures
存在问题。
When I create a stored procedure on localhost and then using sqlyog copy that to live server then its copied normally but, am not able to alter it on live . 当我在localhost上创建存储过程,然后使用sqlyog将其复制到活动服务器时,然后将其正常复制,但是无法在live上对其进行更改 。 To do so I have to create another one with some dummy name and then manually copy & paste the code of SP on live and execute to create it. 为此,我必须使用一个虚拟名称创建另一个,然后手动复制并粘贴实时代码并执行以创建它。
Any idea what might be the issue here? 知道这里可能是什么问题吗?
UPDATE 更新
I just found its issue with definer I think because executing the SP results in this error: 我刚刚发现它与定义器有关的问题,因为执行SP会导致以下错误:
The user specified as a definer ('root'@'localhost') does not exist
I wan't expecting this problem because I removed the definer
before copying the procedure but, its their. 我不希望出现此问题,因为我在复制过程之前先删除了definer
,但是删除了它们的definer
。 seems like 似乎
sqlyog adds it by force maybe sqlyog可能会添加它
. 。 Any idea to fix this? 有解决这个问题的主意吗?
when you go live then in place of 当你上线,然后代替
('root'@'localhost')
Put username in place of root and host address in place of localhost.It may works for you with same. 将用户名替换为root,将主机地址替换为localhost,这可能对您有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.