The user specified as a definer (‘user’@’localhost’) does not exist

As per my application requirement, I have renamed user by String.Format("RENAME USER '{0}'@'%' TO '{1}'@'%';", OldUsername, NewUsername)

It renamed properly in database. But when I execute next command with renamed(new) user name, it throught The user specified as a definer ('OldUser'@'localhost') does not exist error with 1449.

I have change connection string also.
Please suggest me what I am missing here.


Source: mysql

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.