r/SQL • • Oct 07 '26

MySQL Getting Error 1356

/r/mysql/comments/1x08dnu/getting_error_1356/
0 Upvotes

9 comments sorted by

View all comments

Show parent comment

0

u/Revolutionary_Use587 Oct 08 '26

Definer were also updated as per new user@host and no such objects available which has invalid definer but still getting same error

1

u/Significant_Tune9219 Oct 09 '26

Then the next thing I’d check is whether the error names a specific object: run SHOW WARNINGS right after the failing query and see whether it points at a table or column. If it does, that object is probably being resolved under a different schema or an old definer inside a nested view, so expand the dependent views with SHOW CREATE VIEW rather than only the top one.

1

u/Significant_Tune9219 Oct 10 '26

If the definers are already rewritten and it still fails, the next place I'd look is the dependent views: error 1356 is about what the view references, not the definer account. SHOW CREATE VIEW on each one will show whether it still points at a table or column that no longer exists, and recreating the view after the grant changes usually clears it.