简体   繁体   中英

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 .

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 . 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:

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. seems like

sqlyog adds it by force maybe

. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM