v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `test`.`t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
v CREATE ALGORITHM=UNDEFINED DEFINER=`no-such-user`@`localhost` SQL SECURITY DEFINER VIEW `v` AS select `test`.`t1`.`a` AS `a` from `t1` latin1 latin1_swedish_ci
Warnings:
Warnings:
Warning 1356 View 'test.v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
Warning 1356 View 'test.v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
SELECT * FROM v;
SELECT * FROM v;
ERROR HY000: The user specified as a definer ('no-such-user'@'localhost') is invalid or not registered
ERROR HY000: The user specified as a definer ('no-such-user'@'localhost') does not exist
DROP VIEW v;
DROP VIEW v;
DROP TABLE t1;
DROP TABLE t1;
USE test;
USE test;
...
@@ -722,7 +722,7 @@ SELECT * FROM v1;
...
@@ -722,7 +722,7 @@ SELECT * FROM v1;
ERROR 42000: SELECT command denied to user 'inv_17254'@'localhost' for table 'v1'
ERROR 42000: SELECT command denied to user 'inv_17254'@'localhost' for table 'v1'
for a superuser
for a superuser
SELECT * FROM v1;
SELECT * FROM v1;
ERROR HY000: The user specified as a definer ('def_17254'@'localhost') is invalid or not registered
ERROR HY000: The user specified as a definer ('def_17254'@'localhost') does not exist