|
|
@ -16,7 +16,7 @@ create table mysqltest.t2 (a int, b int); |
|
|
|
grant select on mysqltest.t1 to mysqltest_1@localhost; |
|
|
|
grant create view,select on test.* to mysqltest_1@localhost; |
|
|
|
create definer=root@localhost view v1 as select * from mysqltest.t1; |
|
|
|
ERROR 42000: Access denied; you need the SUPER privilege for this operation |
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
|
|
|
create view v1 as select * from mysqltest.t1; |
|
|
|
alter view v1 as select * from mysqltest.t1; |
|
|
|
ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 'v1' |
|
|
@ -779,11 +779,11 @@ GRANT CREATE VIEW ON db26813.v2 TO u26813@localhost; |
|
|
|
GRANT DROP, CREATE VIEW ON db26813.v3 TO u26813@localhost; |
|
|
|
GRANT SELECT ON db26813.t1 TO u26813@localhost; |
|
|
|
ALTER VIEW v1 AS SELECT f2 FROM t1; |
|
|
|
ERROR 42000: Access denied; you need the SUPER privilege for this operation |
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
|
|
|
ALTER VIEW v2 AS SELECT f2 FROM t1; |
|
|
|
ERROR 42000: Access denied; you need the SUPER privilege for this operation |
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
|
|
|
ALTER VIEW v3 AS SELECT f2 FROM t1; |
|
|
|
ERROR 42000: Access denied; you need the SUPER privilege for this operation |
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
|
|
|
SHOW CREATE VIEW v3; |
|
|
|
View Create View character_set_client collation_connection |
|
|
|
v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci |
|
|
@ -807,9 +807,9 @@ GRANT DROP, CREATE VIEW ON mysqltest_29908.v1 TO u29908_2@localhost; |
|
|
|
GRANT DROP, CREATE VIEW, SHOW VIEW ON mysqltest_29908.v2 TO u29908_2@localhost; |
|
|
|
GRANT SELECT ON mysqltest_29908.t1 TO u29908_2@localhost; |
|
|
|
ALTER VIEW v1 AS SELECT f2 FROM t1; |
|
|
|
ERROR 42000: Access denied; you need the SUPER privilege for this operation |
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
|
|
|
ALTER VIEW v2 AS SELECT f2 FROM t1; |
|
|
|
ERROR 42000: Access denied; you need the SUPER privilege for this operation |
|
|
|
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
|
|
|
SHOW CREATE VIEW v2; |
|
|
|
View Create View character_set_client collation_connection |
|
|
|
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci |
|
|
|