Answer the question
In order to leave comments, you need to log in
Can root use views created by non-existent users?
Manually make a request to create a view in MySQL. Specify a non-existent user as the view definer. The database quietly swallows this and displays only a warning that the user does not exist. At the same time, the view creates.
Question: will root be able to use this view? And flowing from it. Will other users with view execution rights be able to use a view created by a non-existent user (created via a specific database query)?
Answer the question
In order to leave comments, you need to log in
I always had problems because of this, when a dump made on one server was deployed on another. I decided to always specify [email protected] as DEFINER, because this user is always there. Those. if DEFINER does not exist VIEW does not work. Even root won't be able to use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question