Commit 1f51d6c0 authored by Anel Husakovic's avatar Anel Husakovic Committed by Anel

MDEV-28548: ER_TABLEACCESS_DENIED_ERROR is missing information about DB

- Added missing information about database of corresponding table for various types of commands
- Update some typos

- Reviewed by: <vicentiu@mariadb.org>
parent f9605eb2
...@@ -11,11 +11,11 @@ CREATE USER u1@localhost; ...@@ -11,11 +11,11 @@ CREATE USER u1@localhost;
grant ALL on db.v1 to u1@localhost; grant ALL on db.v1 to u1@localhost;
connect con1,localhost,u1,,; connect con1,localhost,u1,,;
select * from db.t1; select * from db.t1;
ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table `db`.`t1`
explain select * from db.t1; explain select * from db.t1;
ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table `db`.`t1`
analyze select * from db.t1; analyze select * from db.t1;
ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table `db`.`t1`
select * from db.v1; select * from db.v1;
i c i c
2 bar 2 bar
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -32,7 +32,7 @@ CREATE OR REPLACE DATABASE db2; ...@@ -32,7 +32,7 @@ CREATE OR REPLACE DATABASE db2;
ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'db2' ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'db2'
USE db1; USE db1;
CREATE OR REPLACE TABLE t1(id INT); CREATE OR REPLACE TABLE t1(id INT);
ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table `db1`.`t1`
CREATE OR REPLACE PROCEDURE proc1 (OUT cnt INT) BEGIN END; CREATE OR REPLACE PROCEDURE proc1 (OUT cnt INT) BEGIN END;
ERROR 42000: alter routine command denied to user 'mysqltest_1'@'localhost' for routine 'db1.proc1' ERROR 42000: alter routine command denied to user 'mysqltest_1'@'localhost' for routine 'db1.proc1'
CREATE OR REPLACE FUNCTION lookup RETURNS STRING SONAME "UDF_EXAMPLE_LIB"; CREATE OR REPLACE FUNCTION lookup RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
......
...@@ -51,7 +51,7 @@ c ...@@ -51,7 +51,7 @@ c
select d from mysqltest.v2; select d from mysqltest.v2;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 'v2' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'd' in table 'v2'
select * from mysqltest.v3; select * from mysqltest.v3;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v3' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysqltest`.`v3`
connection root; connection root;
grant select on mysqltest.v3 to mysqltest_1@localhost; grant select on mysqltest.v3 to mysqltest_1@localhost;
connection user1; connection user1;
...@@ -116,7 +116,7 @@ revoke SELECT on db.t1 from foo@localhost; ...@@ -116,7 +116,7 @@ revoke SELECT on db.t1 from foo@localhost;
connection con1; connection con1;
with cte as (select * from t1 where i < 4) with cte as (select * from t1 where i < 4)
select * from cte; select * from cte;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `db`.`t1`
disconnect con1; disconnect con1;
connection default; connection default;
drop database db; drop database db;
......
...@@ -39,7 +39,7 @@ cte3 AS ...@@ -39,7 +39,7 @@ cte3 AS
cte4 AS cte4 AS
(SELECT cte2.a FROM t2,cte2 WHERE cte2.a = t2.a) (SELECT cte2.a FROM t2,cte2 WHERE cte2.a = t2.a)
SELECT * FROM cte4 as r; SELECT * FROM cte4 as r;
ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'u1'@'localhost' for table `db`.`t2`
disconnect u1; disconnect u1;
connection default; connection default;
DROP USER 'u1'@'localhost'; DROP USER 'u1'@'localhost';
......
...@@ -30,7 +30,7 @@ disconnect con1; ...@@ -30,7 +30,7 @@ disconnect con1;
connection default; connection default;
connect con1, localhost, user5; connect con1, localhost, user5;
FLUSH TABLE db1.t1 FOR EXPORT; FLUSH TABLE db1.t1 FOR EXPORT;
ERROR 42000: SELECT command denied to user 'user5'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user5'@'localhost' for table `db1`.`t1`
disconnect con1; disconnect con1;
connection default; connection default;
DROP USER user1@localhost, user2@localhost, user3@localhost, DROP USER user1@localhost, user2@localhost, user3@localhost,
......
...@@ -39,7 +39,7 @@ create user foo@localhost; ...@@ -39,7 +39,7 @@ create user foo@localhost;
grant execute on mysql.* to foo@localhost; grant execute on mysql.* to foo@localhost;
connect foo, localhost, foo; connect foo, localhost, foo;
call mysql.AddGeometryColumn('', 'mysql', 'proc', 'c', 10); call mysql.AddGeometryColumn('', 'mysql', 'proc', 'c', 10);
ERROR 42000: ALTER command denied to user 'foo'@'localhost' for table 'proc' ERROR 42000: ALTER command denied to user 'foo'@'localhost' for table `mysql`.`proc`
disconnect foo; disconnect foo;
connection default; connection default;
drop user foo@localhost; drop user foo@localhost;
This diff is collapsed.
...@@ -107,9 +107,9 @@ GRANT USAGE ON *.* TO `mysqltest_1`@`localhost` ...@@ -107,9 +107,9 @@ GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
GRANT SELECT, INSERT ON `mysqltest`.* TO `mysqltest_1`@`localhost` GRANT SELECT, INSERT ON `mysqltest`.* TO `mysqltest_1`@`localhost`
insert into t1 values (1, 'I can''t change it!'); insert into t1 values (1, 'I can''t change it!');
update t1 set data='I can change it!' where id = 1; update t1 set data='I can change it!' where id = 1;
ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table `mysqltest`.`t1`
insert into t1 values (1, 'XXX') on duplicate key update data= 'I can change it!'; insert into t1 values (1, 'XXX') on duplicate key update data= 'I can change it!';
ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'mysqltest_1'@'localhost' for table `mysqltest`.`t1`
select * from t1; select * from t1;
id data id data
1 I can't change it! 1 I can't change it!
...@@ -126,7 +126,7 @@ connection mrugly; ...@@ -126,7 +126,7 @@ connection mrugly;
grant select (a,b) on t1 to mysqltest_2@localhost; grant select (a,b) on t1 to mysqltest_2@localhost;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'b' in table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for column 'b' in table 't1'
grant select on t1 to mysqltest_3@localhost; grant select on t1 to mysqltest_3@localhost;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysqltest`.`t1`
disconnect mrugly; disconnect mrugly;
connection default; connection default;
drop table t1; drop table t1;
...@@ -311,7 +311,7 @@ grant create user on *.* to mysqltest_2@localhost; ...@@ -311,7 +311,7 @@ grant create user on *.* to mysqltest_2@localhost;
connect user3,localhost,mysqltest_2,,; connect user3,localhost,mysqltest_2,,;
connection user3; connection user3;
select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password; select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table `mysql`.`user`
create user mysqltest_A@'%'; create user mysqltest_A@'%';
rename user mysqltest_A@'%' to mysqltest_B@'%'; rename user mysqltest_A@'%' to mysqltest_B@'%';
drop user mysqltest_B@'%'; drop user mysqltest_B@'%';
...@@ -327,7 +327,7 @@ Grants for mysqltest_3@localhost ...@@ -327,7 +327,7 @@ Grants for mysqltest_3@localhost
GRANT USAGE ON *.* TO `mysqltest_3`@`localhost` GRANT USAGE ON *.* TO `mysqltest_3`@`localhost`
GRANT INSERT, UPDATE, DELETE ON `mysql`.* TO `mysqltest_3`@`localhost` GRANT INSERT, UPDATE, DELETE ON `mysql`.* TO `mysqltest_3`@`localhost`
select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password; select host,user,password from mysql.user where user like 'mysqltest_%' order by host,user,password;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table `mysql`.`user`
insert into mysql.user set host='%', user='mysqltest_B'; insert into mysql.user set host='%', user='mysqltest_B';
Warnings: Warnings:
Warning 1364 Field 'ssl_cipher' doesn't have a default value Warning 1364 Field 'ssl_cipher' doesn't have a default value
...@@ -483,9 +483,9 @@ create table t1 (i int); ...@@ -483,9 +483,9 @@ create table t1 (i int);
connect user1,localhost,mysqltest_u1,,mysqltest_1; connect user1,localhost,mysqltest_u1,,mysqltest_1;
connection user1; connection user1;
show create table mysqltest_2.t1; show create table mysqltest_2.t1;
ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_2`.`t1`
create table t1 like mysqltest_2.t1; create table t1 like mysqltest_2.t1;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_2`.`t1`
connection default; connection default;
grant select on mysqltest_2.t1 to mysqltest_u1@localhost; grant select on mysqltest_2.t1 to mysqltest_u1@localhost;
connection user1; connection user1;
...@@ -540,7 +540,7 @@ USE db1; ...@@ -540,7 +540,7 @@ USE db1;
SELECT c FROM t2; SELECT c FROM t2;
ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for column 'c' in table 't2' ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for column 'c' in table 't2'
SELECT * FROM t2; SELECT * FROM t2;
ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for table `db1`.`t2`
SELECT * FROM t1 JOIN t2 USING (b); SELECT * FROM t1 JOIN t2 USING (b);
ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for column 'c' in table 't2' ERROR 42000: SELECT command denied to user 'mysqltest1'@'localhost' for column 'c' in table 't2'
connection default; connection default;
...@@ -645,7 +645,7 @@ CREATE TEMPORARY TABLE t4 SELECT * FROM t1; ...@@ -645,7 +645,7 @@ CREATE TEMPORARY TABLE t4 SELECT * FROM t1;
# temporary table without additional privileges. # temporary table without additional privileges.
CREATE TEMPORARY TABLE t5(a INT) ENGINE = MyISAM; CREATE TEMPORARY TABLE t5(a INT) ENGINE = MyISAM;
CREATE TEMPORARY TABLE t6(a INT) ENGINE = MERGE UNION = (t5); CREATE TEMPORARY TABLE t6(a INT) ENGINE = MERGE UNION = (t5);
ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u1'@'localhost' for table 't5' ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t5`
# Check that we allow creation of MERGE table with no underlying table # Check that we allow creation of MERGE table with no underlying table
# without additional privileges. # without additional privileges.
CREATE TEMPORARY TABLE t6(a INT) ENGINE = MERGE UNION = (); CREATE TEMPORARY TABLE t6(a INT) ENGINE = MERGE UNION = ();
...@@ -673,7 +673,7 @@ ALTER TABLE t6 UNION = (); ...@@ -673,7 +673,7 @@ ALTER TABLE t6 UNION = ();
# Check that we do *not* allow altering of MERGE table with underlying # Check that we do *not* allow altering of MERGE table with underlying
# temporary table without additional privileges. # temporary table without additional privileges.
ALTER TABLE t6 UNION = (t5); ALTER TABLE t6 UNION = (t5);
ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u1'@'localhost' for table 't5' ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t5`
# #
# Simple INSERT and INSERT ... SELECT. # Simple INSERT and INSERT ... SELECT.
# #
...@@ -918,7 +918,7 @@ CREATE TEMPORARY TABLE t9(a INT); ...@@ -918,7 +918,7 @@ CREATE TEMPORARY TABLE t9(a INT);
CREATE TEMPORARY TABLE t10(a INT) ENGINE = MERGE UNION = (t7, t8); CREATE TEMPORARY TABLE t10(a INT) ENGINE = MERGE UNION = (t7, t8);
ALTER TABLE t10 UNION = (t9); ALTER TABLE t10 UNION = (t9);
ALTER TABLE t10 UNION = (mysqltest_db2.t2_1); ALTER TABLE t10 UNION = (mysqltest_db2.t2_1);
ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u5'@'localhost' for table 't2_1' ERROR 42000: SELECT, UPDATE, DELETE command denied to user 'mysqltest_u5'@'localhost' for table `mysqltest_db2`.`t2_1`
CREATE TEMPORARY TABLE mysqltest_db2.t2_2(a INT) ENGINE = MERGE UNION = (t7, t8); CREATE TEMPORARY TABLE mysqltest_db2.t2_2(a INT) ENGINE = MERGE UNION = (t7, t8);
ALTER TABLE mysqltest_db2.t2_2 UNION = (t9); ALTER TABLE mysqltest_db2.t2_2 UNION = (t9);
ALTER TABLE mysqltest_db2.t2_2 UNION = (); ALTER TABLE mysqltest_db2.t2_2 UNION = ();
......
...@@ -30,23 +30,23 @@ a int(11) YES NULL ...@@ -30,23 +30,23 @@ a int(11) YES NULL
** SHOW COLUMNS ** SHOW COLUMNS
** Should fail because there are no privileges on any column combination. ** Should fail because there are no privileges on any column combination.
show columns from mysqltest_db1.t_no_priv; show columns from mysqltest_db1.t_no_priv;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't_no_priv' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t_no_priv`
** However, select from I_S.COLUMNS will succeed but not show anything: ** However, select from I_S.COLUMNS will succeed but not show anything:
select column_name as 'Field',column_type as 'Type',is_nullable as 'Null',column_key as 'Key',column_default as 'Default',extra as 'Extra' from information_schema.columns where table_schema='mysqltest_db1' and table_name='t_no_priv'; select column_name as 'Field',column_type as 'Type',is_nullable as 'Null',column_key as 'Key',column_default as 'Default',extra as 'Extra' from information_schema.columns where table_schema='mysqltest_db1' and table_name='t_no_priv';
Field Type Null Key Default Extra Field Type Null Key Default Extra
** CREATE TABLE ... LIKE ... require SELECT privleges and will fail. ** CREATE TABLE ... LIKE ... require SELECT privleges and will fail.
create table test.t_no_priv like mysqltest_db1.column_priv_only; create table test.t_no_priv like mysqltest_db1.column_priv_only;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'column_priv_only' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`column_priv_only`
** Just to be sure... SELECT also fails. ** Just to be sure... SELECT also fails.
select * from mysqltest_db1.t_column_priv_only; select * from mysqltest_db1.t_column_priv_only;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't_column_priv_only' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t_column_priv_only`
** SHOW CREATE TABLE ... require any privileges on all columns (the entire table). ** SHOW CREATE TABLE ... require any privileges on all columns (the entire table).
** First we try and fail on a table with only one column privilege. ** First we try and fail on a table with only one column privilege.
show create table mysqltest_db1.t_column_priv_only; show create table mysqltest_db1.t_column_priv_only;
ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't_column_priv_only' ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t_column_priv_only`
** Now we do the same on a table with SELECT privileges. ** Now we do the same on a table with SELECT privileges.
...@@ -72,7 +72,7 @@ t_select_priv CREATE TABLE `t_select_priv` ( ...@@ -72,7 +72,7 @@ t_select_priv CREATE TABLE `t_select_priv` (
** SHOW CREATE TABLE will fail if there is no grants at all: ** SHOW CREATE TABLE will fail if there is no grants at all:
show create table mysqltest_db1.t_no_priv; show create table mysqltest_db1.t_no_priv;
ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table 't_no_priv' ERROR 42000: SHOW command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t_no_priv`
connection default; connection default;
use mysqltest_db1; use mysqltest_db1;
...@@ -97,7 +97,7 @@ SELECT * FROM INFORMATION_SCHEMA.STATISTICS WHERE table_name='t5'; ...@@ -97,7 +97,7 @@ SELECT * FROM INFORMATION_SCHEMA.STATISTICS WHERE table_name='t5';
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT
** SHOW INDEX FROM t5 will fail because we don't have any privileges on any column combination. ** SHOW INDEX FROM t5 will fail because we don't have any privileges on any column combination.
SHOW INDEX FROM t5; SHOW INDEX FROM t5;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't5' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t5`
** SHOW INDEX FROM t6 will succeed because there exist a privilege on a column combination on t6. ** SHOW INDEX FROM t6 will succeed because there exist a privilege on a column combination on t6.
SHOW INDEX FROM t6; SHOW INDEX FROM t6;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
...@@ -108,20 +108,20 @@ Table Op Msg_type Msg_text ...@@ -108,20 +108,20 @@ Table Op Msg_type Msg_text
mysqltest_db1.t6 check status OK mysqltest_db1.t6 check status OK
** With no privileges access is naturally denied: ** With no privileges access is naturally denied:
CHECK TABLE t5; CHECK TABLE t5;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't5' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t5`
** CHECKSUM TABLE requires SELECT privileges on the table. The following should fail: ** CHECKSUM TABLE requires SELECT privileges on the table. The following should fail:
CHECKSUM TABLE t6; CHECKSUM TABLE t6;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't6' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t6`
** And this should work: ** And this should work:
CHECKSUM TABLE t_select_priv; CHECKSUM TABLE t_select_priv;
Table Checksum Table Checksum
mysqltest_db1.t_select_priv 0 mysqltest_db1.t_select_priv 0
SHOW CREATE VIEW v5; SHOW CREATE VIEW v5;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v5' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`v5`
SHOW CREATE VIEW v6; SHOW CREATE VIEW v6;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v6' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`v6`
SHOW CREATE VIEW v2; SHOW CREATE VIEW v2;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v2' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`v2`
SHOW CREATE VIEW v3; SHOW CREATE VIEW v3;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t_select_priv`.`a` AS `a`,`t_select_priv`.`b` AS `b` from `t_select_priv` latin1 latin1_swedish_ci v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t_select_priv`.`a` AS `a`,`t_select_priv`.`b` AS `b` from `t_select_priv` latin1 latin1_swedish_ci
...@@ -189,10 +189,10 @@ mysqltest_db1.t1 check error Corrupt ...@@ -189,10 +189,10 @@ mysqltest_db1.t1 check error Corrupt
# The below statement should fail before repairing t1. # The below statement should fail before repairing t1.
# Otherwise info about such repair will be missing from its result-set. # Otherwise info about such repair will be missing from its result-set.
repair table mysqltest_db1.t1, mysqltest_db1.t2; repair table mysqltest_db1.t1, mysqltest_db1.t2;
ERROR 42000: SELECT, INSERT command denied to user 'mysqltest_u1'@'localhost' for table 't2' ERROR 42000: SELECT, INSERT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t2`
# The same is true for CHECK TABLE statement. # The same is true for CHECK TABLE statement.
check table mysqltest_db1.t1, mysqltest_db1.t2; check table mysqltest_db1.t1, mysqltest_db1.t2;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t2`
check table mysqltest_db1.t1; check table mysqltest_db1.t1;
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
mysqltest_db1.t1 check warning Table is marked as crashed mysqltest_db1.t1 check warning Table is marked as crashed
......
...@@ -181,4 +181,65 @@ GRANT USAGE ON *.* TO `test-user`@`%` ...@@ -181,4 +181,65 @@ GRANT USAGE ON *.* TO `test-user`@`%`
SET DEFAULT ROLE `r``o'l"e` FOR `test-user`@`%` SET DEFAULT ROLE `r``o'l"e` FOR `test-user`@`%`
DROP ROLE `r``o'l"e`; DROP ROLE `r``o'l"e`;
DROP USER 'test-user'; DROP USER 'test-user';
#
# MDEV-28548: ER_TABLEACCESS_DENIED_ERROR is missing information about DB
#
create database db1;
create user foo@localhost;
grant create on db1.* to foo@localhost;
connect con1,localhost,foo,,db1;
create table t(t int);
show columns in t;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `db1`.`t`
show columns in db1.t;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `db1`.`t`
create view t_v as select * from t;
ERROR 42000: CREATE VIEW command denied to user 'foo'@'localhost' for table `db1`.`t_v`
show create view t_v;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `db1`.`t_v`
create table t2(id int primary key, b int);
create table t3(a int, b int, CONSTRAINT `fk_db2_db1_t1`
FOREIGN KEY (a)
REFERENCES `db1 `.t1 (a)
ON DELETE CASCADE
ON UPDATE RESTRICT);
ERROR 42000: Incorrect database name 'db1 '
create table t3(a int, b int, CONSTRAINT `fk_db2_db3_t1`
FOREIGN KEY (a)
REFERENCES db3.t1 (a)
ON DELETE CASCADE
ON UPDATE RESTRICT);
ERROR 42000: REFERENCES command denied to user 'foo'@'localhost' for table `db3`.`t1`
create table t1(a int, b int, CONSTRAINT `fk_db2_db3_t1`
FOREIGN KEY (a)
REFERENCES t2 (id)
ON DELETE CASCADE
ON UPDATE RESTRICT);
ERROR 42000: REFERENCES command denied to user 'foo'@'localhost' for table `db1`.`t2`
connection default;
disconnect con1;
grant create view, select on db1.* to foo@localhost;
connect con1,localhost,foo,,db1;
create view t_v as select * from t;
show grants;
Grants for foo@localhost
GRANT USAGE ON *.* TO `foo`@`localhost`
GRANT SELECT, CREATE, CREATE VIEW ON `db1`.* TO `foo`@`localhost`
show create view t_v;
ERROR 42000: SHOW VIEW command denied to user 'foo'@'localhost' for table `db1`.`t_v`
connection default;
disconnect con1;
grant show view on db1.* to foo@localhost;
connect con1,localhost,foo,,db1;
show grants;
Grants for foo@localhost
GRANT USAGE ON *.* TO `foo`@`localhost`
GRANT SELECT, CREATE, CREATE VIEW, SHOW VIEW ON `db1`.* TO `foo`@`localhost`
show create view t_v;
View Create View character_set_client collation_connection
t_v CREATE ALGORITHM=UNDEFINED DEFINER=`foo`@`localhost` SQL SECURITY DEFINER VIEW `t_v` AS select `t`.`t` AS `t` from `t` latin1 latin1_swedish_ci
connection default;
disconnect con1;
drop database db1;
drop user foo@localhost;
# End of 10.3 tests # End of 10.3 tests
...@@ -135,4 +135,76 @@ SHOW GRANTS FOR 'test-user'; ...@@ -135,4 +135,76 @@ SHOW GRANTS FOR 'test-user';
DROP ROLE `r``o'l"e`; DROP ROLE `r``o'l"e`;
DROP USER 'test-user'; DROP USER 'test-user';
--echo #
--echo # MDEV-28548: ER_TABLEACCESS_DENIED_ERROR is missing information about DB
--echo #
create database db1;
create user foo@localhost;
grant create on db1.* to foo@localhost;
--connect (con1,localhost,foo,,db1)
create table t(t int);
--error ER_TABLEACCESS_DENIED_ERROR
show columns in t;
--error ER_TABLEACCESS_DENIED_ERROR
show columns in db1.t;
# CREATE_VIEW_ACL needed
--error ER_TABLEACCESS_DENIED_ERROR
create view t_v as select * from t;
# show create view needs to have SELECT_ACL and SHOW_VIEW_ACL
--error ER_TABLEACCESS_DENIED_ERROR
show create view t_v;
create table t2(id int primary key, b int);
# Reference non existing DB with wrong DB name
--error ER_WRONG_DB_NAME
create table t3(a int, b int, CONSTRAINT `fk_db2_db1_t1`
FOREIGN KEY (a)
REFERENCES `db1 `.t1 (a)
ON DELETE CASCADE
ON UPDATE RESTRICT);
# Reference non-existing DB (with qualified DB name)
--error ER_TABLEACCESS_DENIED_ERROR
create table t3(a int, b int, CONSTRAINT `fk_db2_db3_t1`
FOREIGN KEY (a)
REFERENCES db3.t1 (a)
ON DELETE CASCADE
ON UPDATE RESTRICT);
# Reference DB (with not qualified DB name)
--error ER_TABLEACCESS_DENIED_ERROR
create table t1(a int, b int, CONSTRAINT `fk_db2_db3_t1`
FOREIGN KEY (a)
REFERENCES t2 (id)
ON DELETE CASCADE
ON UPDATE RESTRICT);
--connection default
--disconnect con1
# Add CREATE_VIEW_ACL and SELECT_ACL
grant create view, select on db1.* to foo@localhost;
--connect (con1,localhost,foo,,db1)
create view t_v as select * from t;
show grants;
--error ER_TABLEACCESS_DENIED_ERROR
show create view t_v;
--connection default
--disconnect con1
# Add SHOW_VIEW_ACL
grant show view on db1.* to foo@localhost;
--connect (con1,localhost,foo,,db1)
show grants;
show create view t_v;
--connection default
--disconnect con1
drop database db1;
drop user foo@localhost;
--echo # End of 10.3 tests --echo # End of 10.3 tests
...@@ -154,7 +154,7 @@ a b c a ...@@ -154,7 +154,7 @@ a b c a
1 1 1 test.t1 1 1 1 test.t1
2 2 2 test.t1 2 2 2 test.t1
select * from t2; select * from t2;
ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table `mysqltest`.`t2`
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
Variable_name Value Variable_name Value
Qcache_queries_in_cache 6 Qcache_queries_in_cache 6
...@@ -170,7 +170,7 @@ select "user3"; ...@@ -170,7 +170,7 @@ select "user3";
user3 user3
user3 user3
select * from t1; select * from t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table `mysqltest`.`t1`
select a from t1; select a from t1;
a a
1 1
...@@ -178,7 +178,7 @@ a ...@@ -178,7 +178,7 @@ a
select c from t1; select c from t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
select * from t2; select * from t2;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table `mysqltest`.`t2`
select mysqltest.t1.c from test.t1,mysqltest.t1; select mysqltest.t1.c from test.t1,mysqltest.t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
......
...@@ -154,7 +154,7 @@ a b c a ...@@ -154,7 +154,7 @@ a b c a
1 1 1 test.t1 1 1 1 test.t1
2 2 2 test.t1 2 2 2 test.t1
select * from t2; select * from t2;
ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table `mysqltest`.`t2`
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
Variable_name Value Variable_name Value
Qcache_queries_in_cache 6 Qcache_queries_in_cache 6
...@@ -170,7 +170,7 @@ select "user3"; ...@@ -170,7 +170,7 @@ select "user3";
user3 user3
user3 user3
select * from t1; select * from t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table `mysqltest`.`t1`
select a from t1; select a from t1;
a a
1 1
...@@ -178,7 +178,7 @@ a ...@@ -178,7 +178,7 @@ a
select c from t1; select c from t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
select * from t2; select * from t2;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table `mysqltest`.`t2`
select mysqltest.t1.c from test.t1,mysqltest.t1; select mysqltest.t1.c from test.t1,mysqltest.t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for column 'c' in table 't1'
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
......
...@@ -10,13 +10,13 @@ connect con1,localhost,privtest,,; ...@@ -10,13 +10,13 @@ connect con1,localhost,privtest,,;
connection con1; connection con1;
USE privtest_db; USE privtest_db;
EXPLAIN INSERT INTO t1 VALUES (10); EXPLAIN INSERT INTO t1 VALUES (10);
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
INSERT INTO t1 VALUES (10); INSERT INTO t1 VALUES (10);
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN INSERT INTO t1 SELECT * FROM t2; EXPLAIN INSERT INTO t1 SELECT * FROM t2;
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
INSERT INTO t1 SELECT * FROM t2; INSERT INTO t1 SELECT * FROM t2;
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
...@@ -32,36 +32,36 @@ connection default; ...@@ -32,36 +32,36 @@ connection default;
REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost'; REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN REPLACE INTO t1 VALUES (10); EXPLAIN REPLACE INTO t1 VALUES (10);
ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
REPLACE INTO t1 VALUES (10); REPLACE INTO t1 VALUES (10);
ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN REPLACE INTO t1 SELECT * FROM t2; EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
REPLACE INTO t1 SELECT * FROM t2; REPLACE INTO t1 SELECT * FROM t2;
ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT, DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN REPLACE INTO t1 VALUES (10); EXPLAIN REPLACE INTO t1 VALUES (10);
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
REPLACE INTO t1 VALUES (10); REPLACE INTO t1 VALUES (10);
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN REPLACE INTO t1 SELECT * FROM t2; EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
REPLACE INTO t1 SELECT * FROM t2; REPLACE INTO t1 SELECT * FROM t2;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
REVOKE INSERT ON privtest_db.t1 FROM 'privtest'@'localhost'; REVOKE INSERT ON privtest_db.t1 FROM 'privtest'@'localhost';
GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN REPLACE INTO t1 VALUES (10); EXPLAIN REPLACE INTO t1 VALUES (10);
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
REPLACE INTO t1 VALUES (10); REPLACE INTO t1 VALUES (10);
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN REPLACE INTO t1 SELECT * FROM t2; EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
REPLACE INTO t1 SELECT * FROM t2; REPLACE INTO t1 SELECT * FROM t2;
ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
GRANT INSERT, DELETE ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT INSERT, DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
...@@ -77,13 +77,13 @@ connection default; ...@@ -77,13 +77,13 @@ connection default;
REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost'; REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN UPDATE t1 SET a = a + 1; EXPLAIN UPDATE t1 SET a = a + 1;
ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
UPDATE t1 SET a = a + 1; UPDATE t1 SET a = a + 1;
ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a; EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a; UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
GRANT UPDATE ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT UPDATE ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
...@@ -100,13 +100,13 @@ REVOKE UPDATE ON privtest_db.t1 FROM 'privtest'@'localhost'; ...@@ -100,13 +100,13 @@ REVOKE UPDATE ON privtest_db.t1 FROM 'privtest'@'localhost';
GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN UPDATE t1 SET a = a + 1; EXPLAIN UPDATE t1 SET a = a + 1;
ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
UPDATE t1 SET a = a + 1; UPDATE t1 SET a = a + 1;
ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a; EXPLAIN UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a; UPDATE t1, t2 SET t1.a = t1.a + 1 WHERE t1.a = t2.a;
ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: UPDATE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
GRANT UPDATE, SELECT ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT UPDATE, SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
...@@ -123,13 +123,13 @@ connection default; ...@@ -123,13 +123,13 @@ connection default;
REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost'; REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN DELETE FROM t1 WHERE a = 10; EXPLAIN DELETE FROM t1 WHERE a = 10;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
DELETE FROM t1 WHERE a = 10; DELETE FROM t1 WHERE a = 10;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a; EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a; DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT DELETE ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
...@@ -138,21 +138,21 @@ ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' ...@@ -138,21 +138,21 @@ ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a'
DELETE FROM t1 WHERE a = 10; DELETE FROM t1 WHERE a = 10;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for column 'a' in table 't1'
EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a; EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a; DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost'; REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
connection con1; connection con1;
EXPLAIN DELETE FROM t1 WHERE a = 10; EXPLAIN DELETE FROM t1 WHERE a = 10;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
DELETE FROM t1 WHERE a = 10; DELETE FROM t1 WHERE a = 10;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a; EXPLAIN DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a; DELETE FROM t1 USING t1, t2 WHERE t1.a = t2.a;
ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'privtest'@'localhost' for table `privtest_db`.`t1`
connection default; connection default;
REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost'; REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';
GRANT DELETE, SELECT ON privtest_db.t1 TO 'privtest'@'localhost'; GRANT DELETE, SELECT ON privtest_db.t1 TO 'privtest'@'localhost';
......
...@@ -6,12 +6,12 @@ GRANT SELECT ON db1.* to USER_1@localhost; ...@@ -6,12 +6,12 @@ GRANT SELECT ON db1.* to USER_1@localhost;
connect con1,localhost,user_1,,db1; connect con1,localhost,user_1,,db1;
CREATE TABLE t1(f1 int); CREATE TABLE t1(f1 int);
SELECT * FROM t1; SELECT * FROM t1;
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db1`.`t1`
connect con2,localhost,USER_1,,db1; connect con2,localhost,USER_1,,db1;
SELECT * FROM t1; SELECT * FROM t1;
f1 f1
CREATE TABLE t2(f1 int); CREATE TABLE t2(f1 int);
ERROR 42000: CREATE command denied to user 'USER_1'@'localhost' for table 't2' ERROR 42000: CREATE command denied to user 'USER_1'@'localhost' for table `db1`.`t2`
connection default; connection default;
disconnect con1; disconnect con1;
disconnect con2; disconnect con2;
......
...@@ -161,17 +161,17 @@ use testdb_1; ...@@ -161,17 +161,17 @@ use testdb_1;
revoke select,show view on v6 from testdb_2@localhost; revoke select,show view on v6 from testdb_2@localhost;
connection testdb_2; connection testdb_2;
show fields from testdb_1.v5; show fields from testdb_1.v5;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v5' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v5`
show create view testdb_1.v5; show create view testdb_1.v5;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v5' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v5`
show fields from testdb_1.v6; show fields from testdb_1.v6;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v6' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v6`
show create view testdb_1.v6; show create view testdb_1.v6;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v6' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v6`
show fields from testdb_1.v7; show fields from testdb_1.v7;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v7' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v7`
show create view testdb_1.v7; show create view testdb_1.v7;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v7' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v7`
show create view v4; show create view v4;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v4 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS select `v3`.`f1` AS `f1`,`v3`.`f2` AS `f2` from `testdb_1`.`v3` latin1 latin1_swedish_ci v4 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v4` AS select `v3`.`f1` AS `f1`,`v3`.`f2` AS `f2` from `testdb_1`.`v3` latin1 latin1_swedish_ci
...@@ -189,7 +189,7 @@ show create view v2; ...@@ -189,7 +189,7 @@ show create view v2;
View Create View character_set_client collation_connection View Create View character_set_client collation_connection
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `v1`.`f1` AS `f1` from `testdb_1`.`v1` latin1 latin1_swedish_ci v2 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `v1`.`f1` AS `f1` from `testdb_1`.`v1` latin1 latin1_swedish_ci
show create view testdb_1.v1; show create view testdb_1.v1;
ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table 'v1' ERROR 42000: SELECT command denied to user 'testdb_2'@'localhost' for table `testdb_1`.`v1`
select table_name from information_schema.columns a select table_name from information_schema.columns a
where a.table_name = 'v2'; where a.table_name = 'v2';
table_name table_name
...@@ -236,7 +236,7 @@ where table_name='v1'; ...@@ -236,7 +236,7 @@ where table_name='v1';
table_schema table_name view_definition table_schema table_name view_definition
testdb_1 v1 testdb_1 v1
show create view testdb_1.v1; show create view testdb_1.v1;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'v1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `testdb_1`.`v1`
connection default; connection default;
drop user mysqltest_1@localhost; drop user mysqltest_1@localhost;
drop database testdb_1; drop database testdb_1;
......
...@@ -38,7 +38,7 @@ INNER JOIN view_stations AS stations ...@@ -38,7 +38,7 @@ INNER JOIN view_stations AS stations
ON table_source.id = stations.icao ON table_source.id = stations.icao
LEFT JOIN table_target AS old LEFT JOIN table_target AS old
USING (mexs_id); USING (mexs_id);
ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table 'table_target' ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table `meow`.`table_target`
REPLACE INTO view_target2 REPLACE INTO view_target2
SELECT stations.mexs_id AS mexs_id, datetime AS messzeit SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
FROM table_source FROM table_source
...@@ -46,7 +46,7 @@ INNER JOIN view_stations AS stations ...@@ -46,7 +46,7 @@ INNER JOIN view_stations AS stations
ON table_source.id = stations.icao ON table_source.id = stations.icao
LEFT JOIN view_target2 AS old LEFT JOIN view_target2 AS old
USING (mexs_id); USING (mexs_id);
ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table 'view_target2' ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table `meow`.`view_target2`
REPLACE INTO view_target3 REPLACE INTO view_target3
SELECT stations.mexs_id AS mexs_id, datetime AS messzeit SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
FROM table_source FROM table_source
...@@ -70,7 +70,7 @@ ON table_source.id = stations.icao ...@@ -70,7 +70,7 @@ ON table_source.id = stations.icao
LEFT JOIN table_target AS old LEFT JOIN table_target AS old
USING (mexs_id); USING (mexs_id);
REPLACE INTO table_target2 VALUES ('00X45Y78','2006-07-12 07:50:00'); REPLACE INTO table_target2 VALUES ('00X45Y78','2006-07-12 07:50:00');
ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table 'table_target2' ERROR 42000: INSERT, DELETE command denied to user 'user20989'@'localhost' for table `meow`.`table_target2`
REPLACE INTO view_target2 VALUES ('12X45Y78','2006-07-12 07:50:00'); REPLACE INTO view_target2 VALUES ('12X45Y78','2006-07-12 07:50:00');
SELECT stations.mexs_id AS mexs_id, datetime AS messzeit SELECT stations.mexs_id AS mexs_id, datetime AS messzeit
FROM table_source FROM table_source
......
...@@ -51,9 +51,9 @@ connection default; ...@@ -51,9 +51,9 @@ connection default;
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1; REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1;
connection con1; connection con1;
select * from t1; select * from t1;
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `d`.`t1`
select invisible from t1; select invisible from t1;
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `d`.`t1`
disconnect con1; disconnect con1;
#Final Cleanup #Final Cleanup
......
...@@ -57,9 +57,9 @@ connection default; ...@@ -57,9 +57,9 @@ connection default;
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1; REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1;
connection con1; connection con1;
select * from t1; select * from t1;
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `d`.`t1`
select count(row_start) from t1; select count(row_start) from t1;
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `d`.`t1`
disconnect con1; disconnect con1;
#Cleanup #Cleanup
......
...@@ -27,7 +27,7 @@ CREATE TABLE t1(f1 INT); ...@@ -27,7 +27,7 @@ CREATE TABLE t1(f1 INT);
GRANT SELECT ON T1 to user_1@localhost; GRANT SELECT ON T1 to user_1@localhost;
connect con1,localhost,user_1,,d1; connect con1,localhost,user_1,,d1;
select * from t1; select * from t1;
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `d1`.`t1`
select * from T1; select * from T1;
f1 f1
connection default; connection default;
......
...@@ -666,7 +666,7 @@ connect unsecure,localhost,untrusted,,mysqltest1; ...@@ -666,7 +666,7 @@ connect unsecure,localhost,untrusted,,mysqltest1;
mysql mysqltest1 -uuntrusted < var/tmp/bug31611.sql mysql mysqltest1 -uuntrusted < var/tmp/bug31611.sql
connection unsecure; connection unsecure;
INSERT INTO t1 VALUES (1,USER()); INSERT INTO t1 VALUES (1,USER());
ERROR 42000: INSERT command denied to user 'untrusted'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'untrusted'@'localhost' for table `mysqltest1`.`t1`
SELECT * FROM t1; SELECT * FROM t1;
a b a b
1 root@localhost 1 root@localhost
......
...@@ -22,7 +22,7 @@ select * from t1; ...@@ -22,7 +22,7 @@ select * from t1;
f1 f1
5 5
delete from t1; delete from t1;
ERROR 42000: DELETE command denied to user 'ssl_user1'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'ssl_user1'@'localhost' for table `test`.`t1`
connection con3; connection con3;
SELECT VARIABLE_VALUE <> '' AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher'; SELECT VARIABLE_VALUE <> '' AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
have_ssl have_ssl
...@@ -31,7 +31,7 @@ select * from t1; ...@@ -31,7 +31,7 @@ select * from t1;
f1 f1
5 5
delete from t1; delete from t1;
ERROR 42000: DELETE command denied to user 'ssl_user3'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'ssl_user3'@'localhost' for table `test`.`t1`
connection con4; connection con4;
SELECT VARIABLE_VALUE <> '' AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher'; SELECT VARIABLE_VALUE <> '' AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
have_ssl have_ssl
...@@ -40,7 +40,7 @@ select * from t1; ...@@ -40,7 +40,7 @@ select * from t1;
f1 f1
5 5
delete from t1; delete from t1;
ERROR 42000: DELETE command denied to user 'ssl_user4'@'localhost' for table 't1' ERROR 42000: DELETE command denied to user 'ssl_user4'@'localhost' for table `test`.`t1`
connection default; connection default;
disconnect con1; disconnect con1;
disconnect con3; disconnect con3;
......
...@@ -14,7 +14,7 @@ GRANT USAGE ON *.* TO `mysqltest_1`@`localhost` ...@@ -14,7 +14,7 @@ GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
GRANT SELECT, ALTER ON `mysqltest_1`.* TO `mysqltest_1`@`localhost` GRANT SELECT, ALTER ON `mysqltest_1`.* TO `mysqltest_1`@`localhost`
alter table t1 add b int; alter table t1 add b int;
alter table t1 drop partition p2; alter table t1 drop partition p2;
ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table `mysqltest_1`.`t1`
disconnect conn1; disconnect conn1;
connection default; connection default;
grant drop on mysqltest_1.* to mysqltest_1@localhost; grant drop on mysqltest_1.* to mysqltest_1@localhost;
...@@ -25,7 +25,7 @@ connection default; ...@@ -25,7 +25,7 @@ connection default;
revoke alter on mysqltest_1.* from mysqltest_1@localhost; revoke alter on mysqltest_1.* from mysqltest_1@localhost;
connect conn3,localhost,mysqltest_1,,mysqltest_1; connect conn3,localhost,mysqltest_1,,mysqltest_1;
alter table t1 drop partition p3; alter table t1 drop partition p3;
ERROR 42000: ALTER command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: ALTER command denied to user 'mysqltest_1'@'localhost' for table `mysqltest_1`.`t1`
disconnect conn3; disconnect conn3;
connection default; connection default;
revoke select,alter,drop on mysqltest_1.* from mysqltest_1@localhost; revoke select,alter,drop on mysqltest_1.* from mysqltest_1@localhost;
......
...@@ -6,7 +6,7 @@ GRANT INSERT ON mysql.plugin TO bug51770@localhost; ...@@ -6,7 +6,7 @@ GRANT INSERT ON mysql.plugin TO bug51770@localhost;
connect con1,localhost,bug51770,,; connect con1,localhost,bug51770,,;
INSTALL PLUGIN example SONAME 'ha_example.so'; INSTALL PLUGIN example SONAME 'ha_example.so';
UNINSTALL PLUGIN example; UNINSTALL PLUGIN example;
ERROR 42000: DELETE command denied to user 'bug51770'@'localhost' for table 'plugin' ERROR 42000: DELETE command denied to user 'bug51770'@'localhost' for table `mysql`.`plugin`
connection default; connection default;
GRANT DELETE ON mysql.plugin TO bug51770@localhost; GRANT DELETE ON mysql.plugin TO bug51770@localhost;
connection con1; connection con1;
......
...@@ -28,7 +28,7 @@ execute s_t9 ; ...@@ -28,7 +28,7 @@ execute s_t9 ;
my_col my_col
1 1
select a as my_col from t1; select a as my_col from t1;
ERROR 42000: SELECT command denied to user 'second_user'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'second_user'@'localhost' for table `mysqltest`.`t1`
connection default; connection default;
grant select on mysqltest.t1 to second_user@localhost grant select on mysqltest.t1 to second_user@localhost
identified by 'looser' ; identified by 'looser' ;
...@@ -71,7 +71,7 @@ Grants for second_user@localhost ...@@ -71,7 +71,7 @@ Grants for second_user@localhost
GRANT USAGE ON *.* TO `second_user`@`localhost` IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3' GRANT USAGE ON *.* TO `second_user`@`localhost` IDENTIFIED BY PASSWORD '*13843FE600B19A81E32AF50D4A6FED25875FF1F3'
GRANT SELECT ON `mysqltest`.`t9` TO `second_user`@`localhost` GRANT SELECT ON `mysqltest`.`t9` TO `second_user`@`localhost`
execute s_t1 ; execute s_t1 ;
ERROR 42000: SELECT command denied to user 'second_user'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'second_user'@'localhost' for table `mysqltest`.`t1`
connection default; connection default;
disconnect con3; disconnect con3;
revoke all privileges, grant option from second_user@localhost ; revoke all privileges, grant option from second_user@localhost ;
......
...@@ -535,25 +535,25 @@ show create database mysqltest; ...@@ -535,25 +535,25 @@ show create database mysqltest;
Database Create Database Database Create Database
mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */ mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */
drop table t1; drop table t1;
ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table `mysqltest`.`t1`
drop database mysqltest; drop database mysqltest;
ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysqltest' ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysqltest'
disconnect con1; disconnect con1;
connect con2,localhost,mysqltest_2,,test; connect con2,localhost,mysqltest_2,,test;
connection con2; connection con2;
select * from mysqltest.t1; select * from mysqltest.t1;
ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_2'@'localhost' for table `mysqltest`.`t1`
show create database mysqltest; show create database mysqltest;
ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest' ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest'
drop table mysqltest.t1; drop table mysqltest.t1;
ERROR 42000: DROP command denied to user 'mysqltest_2'@'localhost' for table 't1' ERROR 42000: DROP command denied to user 'mysqltest_2'@'localhost' for table `mysqltest`.`t1`
drop database mysqltest; drop database mysqltest;
ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest' ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysqltest'
disconnect con2; disconnect con2;
connect con3,localhost,mysqltest_3,,test; connect con3,localhost,mysqltest_3,,test;
connection con3; connection con3;
select * from mysqltest.t1; select * from mysqltest.t1;
ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_3'@'localhost' for table `mysqltest`.`t1`
show create database mysqltest; show create database mysqltest;
Database Create Database Database Create Database
mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */ mysqltest CREATE DATABASE `mysqltest` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */
......
...@@ -21,9 +21,9 @@ user1@localhost ...@@ -21,9 +21,9 @@ user1@localhost
# Making sure that user1 does not have privileges to db1.t1 # Making sure that user1 does not have privileges to db1.t1
# #
SHOW CREATE TABLE db1.t1; SHOW CREATE TABLE db1.t1;
ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table `db1`.`t1`
SHOW FIELDS IN db1.t1; SHOW FIELDS IN db1.t1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
# #
# Trigger: using TYPE OF with a table we don't have access to # Trigger: using TYPE OF with a table we don't have access to
# #
...@@ -39,7 +39,7 @@ SET NEW.b = 10; ...@@ -39,7 +39,7 @@ SET NEW.b = 10;
END END
$$ $$
INSERT INTO t1 (a) VALUES (10); INSERT INTO t1 (a) VALUES (10);
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
SELECT * FROM t1; SELECT * FROM t1;
a b a b
10 20 10 20
...@@ -56,7 +56,7 @@ SELECT a; ...@@ -56,7 +56,7 @@ SELECT a;
END; END;
$$ $$
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
# #
# Stored procedure: Using TYPE OF for with a table that we don't have access to # Stored procedure: Using TYPE OF for with a table that we don't have access to
...@@ -72,7 +72,7 @@ END; ...@@ -72,7 +72,7 @@ END;
$$ $$
connection conn1; connection conn1;
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
connection default; connection default;
CREATE PROCEDURE p1() CREATE PROCEDURE p1()
...@@ -84,7 +84,7 @@ END; ...@@ -84,7 +84,7 @@ END;
$$ $$
connection conn1; connection conn1;
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
# #
# Stored procedure: Using TYPE OF for with a table that we don't have access to # Stored procedure: Using TYPE OF for with a table that we don't have access to
...@@ -129,7 +129,7 @@ RETURN OCTET_LENGTH(a); ...@@ -129,7 +129,7 @@ RETURN OCTET_LENGTH(a);
END; END;
$$ $$
SELECT f1(); SELECT f1();
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP FUNCTION f1; DROP FUNCTION f1;
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -147,7 +147,7 @@ END; ...@@ -147,7 +147,7 @@ END;
$$ $$
connection conn1; connection conn1;
SELECT f1(); SELECT f1();
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP FUNCTION f1; DROP FUNCTION f1;
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -176,7 +176,7 @@ connection conn1; ...@@ -176,7 +176,7 @@ connection conn1;
# Making sure that user1 has access to db1.t1.a, but not to db1.t1.b # Making sure that user1 has access to db1.t1.a, but not to db1.t1.b
# #
SHOW CREATE TABLE db1.t1; SHOW CREATE TABLE db1.t1;
ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table `db1`.`t1`
SHOW FIELDS IN db1.t1; SHOW FIELDS IN db1.t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
a int(11) YES NULL a int(11) YES NULL
......
...@@ -50,7 +50,7 @@ select db1_secret.db(); ...@@ -50,7 +50,7 @@ select db1_secret.db();
db1_secret.db() db1_secret.db()
test test
select * from db1_secret.t1; select * from db1_secret.t1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1_secret`.`t1`
create procedure db1_secret.dummy() begin end; create procedure db1_secret.dummy() begin end;
ERROR 42000: Access denied for user 'user1'@'localhost' to database 'db1_secret' ERROR 42000: Access denied for user 'user1'@'localhost' to database 'db1_secret'
drop procedure db1_secret.dummy; drop procedure db1_secret.dummy;
...@@ -65,7 +65,7 @@ select db1_secret.db(); ...@@ -65,7 +65,7 @@ select db1_secret.db();
db1_secret.db() db1_secret.db()
test test
select * from db1_secret.t1; select * from db1_secret.t1;
ERROR 42000: SELECT command denied to user ''@'localhost' for table 't1' ERROR 42000: SELECT command denied to user ''@'localhost' for table `db1_secret`.`t1`
create procedure db1_secret.dummy() begin end; create procedure db1_secret.dummy() begin end;
ERROR 42000: Access denied for user ''@'%' to database 'db1_secret' ERROR 42000: Access denied for user ''@'%' to database 'db1_secret'
drop procedure db1_secret.dummy; drop procedure db1_secret.dummy;
...@@ -102,14 +102,14 @@ db() ...@@ -102,14 +102,14 @@ db()
test test
connection con2user1; connection con2user1;
call db1_secret.stamp(5); call db1_secret.stamp(5);
ERROR 42000: INSERT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: INSERT command denied to user 'user1'@'localhost' for table `db1_secret`.`t1`
select db1_secret.db(); select db1_secret.db();
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1_secret`.`t1`
connection con3anon; connection con3anon;
call db1_secret.stamp(6); call db1_secret.stamp(6);
ERROR 42000: INSERT command denied to user ''@'localhost' for table 't1' ERROR 42000: INSERT command denied to user ''@'localhost' for table `db1_secret`.`t1`
select db1_secret.db(); select db1_secret.db();
ERROR 42000: SELECT command denied to user ''@'localhost' for table 't1' ERROR 42000: SELECT command denied to user ''@'localhost' for table `db1_secret`.`t1`
connection con1root; connection con1root;
drop database if exists db2; drop database if exists db2;
create database db2; create database db2;
...@@ -127,7 +127,7 @@ connection con2user1; ...@@ -127,7 +127,7 @@ connection con2user1;
use db2; use db2;
create procedure p () insert into t2 values (1); create procedure p () insert into t2 values (1);
call p(); call p();
ERROR 42000: INSERT command denied to user 'user1'@'localhost' for table 't2' ERROR 42000: INSERT command denied to user 'user1'@'localhost' for table `db2`.`t2`
connect con4user2,localhost,user2,,; connect con4user2,localhost,user2,,;
connection con4user2; connection con4user2;
use db2; use db2;
...@@ -404,9 +404,9 @@ id int(11) YES NULL ...@@ -404,9 +404,9 @@ id int(11) YES NULL
call db_bug14533.bug14533_2(); call db_bug14533.bug14533_2();
id id
desc db_bug14533.t1; desc db_bug14533.t1;
ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table `db_bug14533`.`t1`
select * from db_bug14533.t1; select * from db_bug14533.t1;
ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table `db_bug14533`.`t1`
connection default; connection default;
disconnect user_bug14533; disconnect user_bug14533;
drop user user_bug14533@localhost; drop user user_bug14533@localhost;
...@@ -566,24 +566,24 @@ END| ...@@ -566,24 +566,24 @@ END|
CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT f_evil(); CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT f_evil();
connect conn1, localhost, mysqltest_u1,,; connect conn1, localhost, mysqltest_u1,,;
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `test`.`t1`
SELECT f_evil(); SELECT f_evil();
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `test`.`t1`
SELECT @a, @b; SELECT @a, @b;
@a @b @a @b
mysqltest_u1@localhost NULL mysqltest_u1@localhost NULL
SELECT f_suid(f_evil()); SELECT f_suid(f_evil());
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `test`.`t1`
SELECT @a, @b; SELECT @a, @b;
@a @b @a @b
mysqltest_u1@localhost NULL mysqltest_u1@localhost NULL
CALL p_suid(f_evil()); CALL p_suid(f_evil());
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `test`.`t1`
SELECT @a, @b; SELECT @a, @b;
@a @b @a @b
mysqltest_u1@localhost NULL mysqltest_u1@localhost NULL
SELECT * FROM v1; SELECT * FROM v1;
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 'v1' ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table `test`.`v1`
SELECT @a, @b; SELECT @a, @b;
@a @b @a @b
mysqltest_u1@localhost NULL mysqltest_u1@localhost NULL
......
...@@ -243,13 +243,13 @@ return (select * from db37908.t1 limit 1)| ...@@ -243,13 +243,13 @@ return (select * from db37908.t1 limit 1)|
connect user1,localhost,mysqltest_1,,test; connect user1,localhost,mysqltest_1,,test;
connection user1; connection user1;
select * from db37908.t1; select * from db37908.t1;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `db37908`.`t1`
show status where variable_name ='uptime' and 2 in (select * from db37908.t1); show status where variable_name ='uptime' and 2 in (select * from db37908.t1);
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `db37908`.`t1`
show procedure status where name ='proc37908' and 1 in (select f1 from db37908.t1); show procedure status where name ='proc37908' and 1 in (select f1 from db37908.t1);
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `db37908`.`t1`
show function status where name ='func37908' and 1 in (select func37908()); show function status where name ='func37908' and 1 in (select func37908());
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `db37908`.`t1`
connection default; connection default;
disconnect user1; disconnect user1;
disconnect root; disconnect root;
......
...@@ -25,9 +25,9 @@ convert_tz(b, 'Europe/Moscow', 'UTC') ...@@ -25,9 +25,9 @@ convert_tz(b, 'Europe/Moscow', 'UTC')
update t1, t2 set t1.b = convert_tz('2004-10-21 19:00:00', 'Europe/Moscow', 'UTC') update t1, t2 set t1.b = convert_tz('2004-10-21 19:00:00', 'Europe/Moscow', 'UTC')
where t1.a = t2.c and t2.d = (select max(d) from t2); where t1.a = t2.c and t2.d = (select max(d) from t2);
select * from mysql.time_zone_name; select * from mysql.time_zone_name;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysql`.`time_zone_name`
select Name, convert_tz('2004-10-21 19:00:00', Name, 'UTC') from mysql.time_zone_name; select Name, convert_tz('2004-10-21 19:00:00', Name, 'UTC') from mysql.time_zone_name;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysql`.`time_zone_name`
connection default; connection default;
disconnect tzuser; disconnect tzuser;
connection default; connection default;
...@@ -54,9 +54,9 @@ convert_tz(b, 'Europe/Moscow', 'UTC') ...@@ -54,9 +54,9 @@ convert_tz(b, 'Europe/Moscow', 'UTC')
update t1, t2 set t1.b = convert_tz('2004-11-30 12:00:00', 'Europe/Moscow', 'UTC') update t1, t2 set t1.b = convert_tz('2004-11-30 12:00:00', 'Europe/Moscow', 'UTC')
where t1.a = t2.c and t2.d = (select max(d) from t2); where t1.a = t2.c and t2.d = (select max(d) from t2);
select * from mysql.time_zone_name; select * from mysql.time_zone_name;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysql`.`time_zone_name`
select Name, convert_tz('2004-11-30 12:00:00', Name, 'UTC') from mysql.time_zone_name; select Name, convert_tz('2004-11-30 12:00:00', Name, 'UTC') from mysql.time_zone_name;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone_name' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysql`.`time_zone_name`
drop table t1, t2; drop table t1, t2;
create table t1 (a int, b datetime); create table t1 (a int, b datetime);
create table t2 (a int, b varchar(40)); create table t2 (a int, b varchar(40));
...@@ -82,10 +82,10 @@ a lb ...@@ -82,10 +82,10 @@ a lb
1 2001-01-01 03:00:00 1 2001-01-01 03:00:00
2 2002-01-01 03:00:00 2 2002-01-01 03:00:00
select * from v1, mysql.time_zone; select * from v1, mysql.time_zone;
ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table 'time_zone' ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `mysql`.`time_zone`
drop view v1; drop view v1;
create view v1 as select a, convert_tz(b, 'UTC', 'Europe/Moscow') as lb from t1, mysql.time_zone; create view v1 as select a, convert_tz(b, 'UTC', 'Europe/Moscow') as lb from t1, mysql.time_zone;
ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 'time_zone' ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table `mysql`.`time_zone`
connection default; connection default;
disconnect tzuser3; disconnect tzuser3;
drop table t1; drop table t1;
......
...@@ -23,7 +23,7 @@ connection wl2818_definer_con; ...@@ -23,7 +23,7 @@ connection wl2818_definer_con;
CREATE TRIGGER trg1 AFTER INSERT ON t1 CREATE TRIGGER trg1 AFTER INSERT ON t1
FOR EACH ROW FOR EACH ROW
INSERT INTO t2 VALUES(CURRENT_USER()); INSERT INTO t2 VALUES(CURRENT_USER());
ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table `mysqltest_db1`.`t1`
disconnect wl2818_definer_con; disconnect wl2818_definer_con;
connection default; connection default;
GRANT TRIGGER ON mysqltest_db1.t1 TO mysqltest_dfn@localhost; GRANT TRIGGER ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
...@@ -38,12 +38,12 @@ REVOKE TRIGGER ON mysqltest_db1.t1 FROM mysqltest_dfn@localhost; ...@@ -38,12 +38,12 @@ REVOKE TRIGGER ON mysqltest_db1.t1 FROM mysqltest_dfn@localhost;
connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1; connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
connection wl2818_definer_con; connection wl2818_definer_con;
DROP TRIGGER trg1; DROP TRIGGER trg1;
ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table `mysqltest_db1`.`t1`
disconnect wl2818_definer_con; disconnect wl2818_definer_con;
connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1; connect wl2818_definer_con,localhost,mysqltest_dfn,,mysqltest_db1;
connection wl2818_definer_con; connection wl2818_definer_con;
INSERT INTO t1 VALUES(0); INSERT INTO t1 VALUES(0);
ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'mysqltest_dfn'@'localhost' for table `mysqltest_db1`.`t1`
disconnect wl2818_definer_con; disconnect wl2818_definer_con;
connection default; connection default;
GRANT TRIGGER ON mysqltest_db1.t1 TO mysqltest_dfn@localhost; GRANT TRIGGER ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
...@@ -95,7 +95,7 @@ REVOKE INSERT ON mysqltest_db1.t2 FROM mysqltest_dfn@localhost; ...@@ -95,7 +95,7 @@ REVOKE INSERT ON mysqltest_db1.t2 FROM mysqltest_dfn@localhost;
connection wl2818_invoker_con; connection wl2818_invoker_con;
use mysqltest_db1; use mysqltest_db1;
INSERT INTO t1 VALUES(3); INSERT INTO t1 VALUES(3);
ERROR 42000: INSERT command denied to user 'mysqltest_dfn'@'localhost' for table 't2' ERROR 42000: INSERT command denied to user 'mysqltest_dfn'@'localhost' for table `mysqltest_db1`.`t2`
SELECT * FROM t1; SELECT * FROM t1;
num_value num_value
1 1
...@@ -563,7 +563,7 @@ INSERT INTO t2 VALUES (2); ...@@ -563,7 +563,7 @@ INSERT INTO t2 VALUES (2);
connection default; connection default;
REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost; REVOKE ALL PRIVILEGES, GRANT OPTION FROM mysqltest_u1@localhost;
UPDATE IGNORE t1, t2 SET t1.a1 = 2, t2.a1 = 3 WHERE t1.a1 = 1 AND t2.a1 = 2; UPDATE IGNORE t1, t2 SET t1.a1 = 2, t2.a1 = 3 WHERE t1.a1 = 1 AND t2.a1 = 2;
ERROR 42000: TRIGGER command denied to user 'mysqltest_u1'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'mysqltest_u1'@'localhost' for table `mysqltest_db1`.`t1`
DROP DATABASE mysqltest_db1; DROP DATABASE mysqltest_db1;
DROP USER mysqltest_u1@localhost; DROP USER mysqltest_u1@localhost;
disconnect con1; disconnect con1;
......
This diff is collapsed.
...@@ -23,9 +23,9 @@ user1@localhost ...@@ -23,9 +23,9 @@ user1@localhost
# Making sure that user1 does not have privileges to db1.t1 # Making sure that user1 does not have privileges to db1.t1
# #
SHOW CREATE TABLE db1.t1; SHOW CREATE TABLE db1.t1;
ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table `db1`.`t1`
SHOW FIELDS IN db1.t1; SHOW FIELDS IN db1.t1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
# #
# Trigger: using %TYPE with a table we don't have access to # Trigger: using %TYPE with a table we don't have access to
# #
...@@ -43,7 +43,7 @@ END; ...@@ -43,7 +43,7 @@ END;
END END
$$ $$
INSERT INTO t1 (a) VALUES (10); INSERT INTO t1 (a) VALUES (10);
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
SELECT * FROM t1; SELECT * FROM t1;
a b a b
10 20 10 20
...@@ -61,7 +61,7 @@ SELECT a; ...@@ -61,7 +61,7 @@ SELECT a;
END; END;
$$ $$
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
CREATE PROCEDURE p1() CREATE PROCEDURE p1()
AS AS
...@@ -71,7 +71,7 @@ SELECT a.a; ...@@ -71,7 +71,7 @@ SELECT a.a;
END; END;
$$ $$
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
# #
# Stored procedure: Using %TYPE for with a table that we don't have access to # Stored procedure: Using %TYPE for with a table that we don't have access to
...@@ -88,7 +88,7 @@ END; ...@@ -88,7 +88,7 @@ END;
$$ $$
connection conn1; connection conn1;
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
connection default; connection default;
CREATE PROCEDURE p1() CREATE PROCEDURE p1()
...@@ -101,7 +101,7 @@ END; ...@@ -101,7 +101,7 @@ END;
$$ $$
connection conn1; connection conn1;
CALL p1; CALL p1;
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP PROCEDURE p1; DROP PROCEDURE p1;
# #
# Stored procedure: Using %TYPE for with a table that we don't have access to # Stored procedure: Using %TYPE for with a table that we don't have access to
...@@ -149,7 +149,7 @@ RETURN OCTET_LENGTH(a); ...@@ -149,7 +149,7 @@ RETURN OCTET_LENGTH(a);
END; END;
$$ $$
SELECT f1(); SELECT f1();
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP FUNCTION f1; DROP FUNCTION f1;
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -168,7 +168,7 @@ END; ...@@ -168,7 +168,7 @@ END;
$$ $$
connection conn1; connection conn1;
SELECT f1(); SELECT f1();
ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'user1'@'localhost' for table `db1`.`t1`
DROP FUNCTION f1; DROP FUNCTION f1;
DROP TABLE t1; DROP TABLE t1;
# #
...@@ -198,7 +198,7 @@ connection conn1; ...@@ -198,7 +198,7 @@ connection conn1;
# Making sure that user1 has access to db1.t1.a, but not to db1.t1.b # Making sure that user1 has access to db1.t1.a, but not to db1.t1.b
# #
SHOW CREATE TABLE db1.t1; SHOW CREATE TABLE db1.t1;
ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table 't1' ERROR 42000: SHOW command denied to user 'user1'@'localhost' for table `db1`.`t1`
SHOW FIELDS IN db1.t1; SHOW FIELDS IN db1.t1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
a int(11) YES NULL a int(11) YES NULL
......
...@@ -301,7 +301,7 @@ select * from t2; ...@@ -301,7 +301,7 @@ select * from t2;
a a
connection con1; connection con1;
create trigger trg before insert on t1 for each row set new.a= 10; create trigger trg before insert on t1 for each row set new.a= 10;
ERROR 42000: TRIGGER command denied to user 'zedjzlcsjhd'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'zedjzlcsjhd'@'localhost' for table `mysqltest1`.`t1`
connection master; connection master;
delete from t1; delete from t1;
create trigger trg before insert on t1 for each row set new.a= 10; create trigger trg before insert on t1 for each row set new.a= 10;
......
...@@ -221,31 +221,31 @@ connect user5_2, localhost, user_2, , db_storedproc_1; ...@@ -221,31 +221,31 @@ connect user5_2, localhost, user_2, , db_storedproc_1;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
connection default; connection default;
root@localhost db_storedproc_1 root@localhost db_storedproc_1
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
grant insert on db_storedproc_1.* to 'user_1'@'localhost'; grant insert on db_storedproc_1.* to 'user_1'@'localhost';
flush privileges; flush privileges;
connection user5_2; connection user5_2;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
connection default; connection default;
root@localhost db_storedproc_1 root@localhost db_storedproc_1
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
grant SELECT on db_storedproc_1.* to 'user_1'@'localhost'; grant SELECT on db_storedproc_1.* to 'user_1'@'localhost';
flush privileges; flush privileges;
connection user5_2; connection user5_2;
...@@ -276,9 +276,9 @@ inserted outside of SP NULL ...@@ -276,9 +276,9 @@ inserted outside of SP NULL
inserted from sp5_ins 2000-10-00 inserted from sp5_ins 2000-10-00
inserted from sp5_s_i 2000-10-00 inserted from sp5_s_i 2000-10-00
inserted from sp5_ins 2000-10-00 inserted from sp5_ins 2000-10-00
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
c1 c2 c3 c1 c2 c3
inserted outside of SP NULL inserted outside of SP NULL
...@@ -294,11 +294,11 @@ connection user5_2; ...@@ -294,11 +294,11 @@ connection user5_2;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
disconnect user5_2; disconnect user5_2;
connection default; connection default;
...@@ -348,9 +348,9 @@ user_2@localhost db_storedproc_1 ...@@ -348,9 +348,9 @@ user_2@localhost db_storedproc_1
CALL sp3166_s_i(); CALL sp3166_s_i();
c1 c1
inserted outside SP inserted outside SP
ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_ins(); CALL sp3166_ins();
ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_sel(); CALL sp3166_sel();
c1 c1
inserted outside SP inserted outside SP
...@@ -390,10 +390,10 @@ connect user6_4, localhost, user_2, , db_storedproc_1; ...@@ -390,10 +390,10 @@ connect user6_4, localhost, user_2, , db_storedproc_1;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp3166_s_i(); CALL sp3166_s_i();
ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_ins(); CALL sp3166_ins();
CALL sp3166_sel(); CALL sp3166_sel();
ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
disconnect user6_4; disconnect user6_4;
connection default; connection default;
CALL sp3166_s_i(); CALL sp3166_s_i();
......
...@@ -99,7 +99,7 @@ test_noprivs@localhost ...@@ -99,7 +99,7 @@ test_noprivs@localhost
use priv_db; use priv_db;
create trigger trg1_1 before INSERT on t1 for each row create trigger trg1_1 before INSERT on t1 for each row
set new.f1 = 'trig 3.5.3.2_1-no'; set new.f1 = 'trig 3.5.3.2_1-no';
ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table `priv_db`.`t1`
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values ('insert 3.5.3.2-no'); insert into t1 (f1) values ('insert 3.5.3.2-no');
...@@ -135,7 +135,7 @@ Testcase 3.5.3.6: ...@@ -135,7 +135,7 @@ Testcase 3.5.3.6:
connection no_privs; connection no_privs;
use priv_db; use priv_db;
drop trigger trg1_2; drop trigger trg1_2;
ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table `priv_db`.`t1`
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values ('insert 3.5.3.6-yes'); insert into t1 (f1) values ('insert 3.5.3.6-yes');
...@@ -688,7 +688,7 @@ insert into t2 values (new.f1); ...@@ -688,7 +688,7 @@ insert into t2 values (new.f1);
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (4); insert into t1 (f1) values (4);
ERROR 42000: INSERT command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: INSERT command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke SELECT on priv_db.t2 from test_yesprivs@localhost; revoke SELECT on priv_db.t2 from test_yesprivs@localhost;
grant INSERT on priv_db.t2 to test_yesprivs@localhost; grant INSERT on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (4); insert into t1 (f1) values (4);
...@@ -706,7 +706,7 @@ update t2 set f2=new.f1-1; ...@@ -706,7 +706,7 @@ update t2 set f2=new.f1-1;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (2); insert into t1 (f1) values (2);
ERROR 42000: UPDATE command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: UPDATE command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke INSERT on priv_db.t2 from test_yesprivs@localhost; revoke INSERT on priv_db.t2 from test_yesprivs@localhost;
grant UPDATE on priv_db.t2 to test_yesprivs@localhost; grant UPDATE on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (2); insert into t1 (f1) values (2);
...@@ -725,7 +725,7 @@ select f2 into @aaa from t2 where f2=new.f1; ...@@ -725,7 +725,7 @@ select f2 into @aaa from t2 where f2=new.f1;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
ERROR 42000: SELECT command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke UPDATE on priv_db.t2 from test_yesprivs@localhost; revoke UPDATE on priv_db.t2 from test_yesprivs@localhost;
grant SELECT on priv_db.t2 to test_yesprivs@localhost; grant SELECT on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
...@@ -748,7 +748,7 @@ delete from t2; ...@@ -748,7 +748,7 @@ delete from t2;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
ERROR 42000: DELETE command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: DELETE command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke SELECT on priv_db.t2 from test_yesprivs@localhost; revoke SELECT on priv_db.t2 from test_yesprivs@localhost;
grant DELETE on priv_db.t2 to test_yesprivs@localhost; grant DELETE on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
......
...@@ -170,7 +170,7 @@ Field Type Null Key Default Extra ...@@ -170,7 +170,7 @@ Field Type Null Key Default Extra
f1 char(10) YES MUL NULL f1 char(10) YES MUL NULL
f2 text YES NULL f2 text YES NULL
SHOW COLUMNS FROM db_datadict.t2; SHOW COLUMNS FROM db_datadict.t2;
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `db_datadict`.`t2`
SHOW COLUMNS FROM db_datadict.v1; SHOW COLUMNS FROM db_datadict.v1;
Field Type Null Key Default Extra Field Type Null Key Default Extra
f2 int(1) NO 0 f2 int(1) NO 0
...@@ -182,13 +182,13 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAUL ...@@ -182,13 +182,13 @@ TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAUL
def db_datadict t2 f1 1 NULL NO char 10 10 NULL NULL NULL latin1 latin1_swedish_ci char(10) PRI insert NEVER NULL def db_datadict t2 f1 1 NULL NO char 10 10 NULL NULL NULL latin1 latin1_swedish_ci char(10) PRI insert NEVER NULL
def db_datadict t2 f2 2 NULL YES text 65535 65535 NULL NULL NULL latin1 latin1_swedish_ci text insert NEVER NULL def db_datadict t2 f2 2 NULL YES text 65535 65535 NULL NULL NULL latin1 latin1_swedish_ci text insert NEVER NULL
SHOW COLUMNS FROM db_datadict.t1; SHOW COLUMNS FROM db_datadict.t1;
ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table `db_datadict`.`t1`
SHOW COLUMNS FROM db_datadict.t2; SHOW COLUMNS FROM db_datadict.t2;
Field Type Null Key Default Extra Field Type Null Key Default Extra
f1 char(10) NO PRI NULL f1 char(10) NO PRI NULL
f2 text YES NULL f2 text YES NULL
SHOW COLUMNS FROM db_datadict.v1; SHOW COLUMNS FROM db_datadict.v1;
ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table 'v1' ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table `db_datadict`.`v1`
connection default; connection default;
disconnect testuser1; disconnect testuser1;
disconnect testuser2; disconnect testuser2;
......
...@@ -150,7 +150,7 @@ t1 0 my_idx1 1 f6 ### ### ### ### ### ### ### ...@@ -150,7 +150,7 @@ t1 0 my_idx1 1 f6 ### ### ### ### ### ### ###
t1 0 my_idx1 2 f1 ### ### ### ### ### ### ### t1 0 my_idx1 2 f1 ### ### ### ### ### ### ###
t1 0 my_idx2 1 f3 ### ### ### ### ### ### ### t1 0 my_idx2 1 f3 ### ### ### ### ### ### ###
SHOW INDEXES FROM db_datadict.t2; SHOW INDEXES FROM db_datadict.t2;
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `db_datadict`.`t2`
connection default; connection default;
disconnect testuser1; disconnect testuser1;
DROP USER 'testuser1'@'localhost'; DROP USER 'testuser1'@'localhost';
......
...@@ -172,9 +172,9 @@ Grants for testuser4@localhost ...@@ -172,9 +172,9 @@ Grants for testuser4@localhost
GRANT TRIGGER ON *.* TO `testuser4`@`localhost` GRANT TRIGGER ON *.* TO `testuser4`@`localhost`
# TRIGGER Privilege + no SELECT Privilege on t1 --> result for query # TRIGGER Privilege + no SELECT Privilege on t1 --> result for query
SELECT * FROM db_datadict.t1; SELECT * FROM db_datadict.t1;
ERROR 42000: SELECT command denied to user 'testuser4'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'testuser4'@'localhost' for table `db_datadict`.`t1`
DESC db_datadict.t1; DESC db_datadict.t1;
ERROR 42000: SELECT command denied to user 'testuser4'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'testuser4'@'localhost' for table `db_datadict`.`t1`
SELECT * FROM information_schema.triggers SELECT * FROM information_schema.triggers
WHERE trigger_name = 'trg1'; WHERE trigger_name = 'trg1';
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
......
...@@ -1052,7 +1052,7 @@ PRIVILEGE_TYPE UPDATE ...@@ -1052,7 +1052,7 @@ PRIVILEGE_TYPE UPDATE
IS_GRANTABLE NO IS_GRANTABLE NO
SELECT * FROM mysql.user SELECT * FROM mysql.user
WHERE user LIKE 'testuser%' ORDER BY host, user; WHERE user LIKE 'testuser%' ORDER BY host, user;
ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table `mysql`.`user`
SHOW GRANTS; SHOW GRANTS;
Grants for testuser2@localhost Grants for testuser2@localhost
GRANT INSERT, UPDATE ON *.* TO `testuser2`@`localhost` GRANT INSERT, UPDATE ON *.* TO `testuser2`@`localhost`
...@@ -1066,7 +1066,7 @@ PRIVILEGE_TYPE USAGE ...@@ -1066,7 +1066,7 @@ PRIVILEGE_TYPE USAGE
IS_GRANTABLE NO IS_GRANTABLE NO
SELECT * FROM mysql.user SELECT * FROM mysql.user
WHERE user LIKE 'testuser%' ORDER BY host, user; WHERE user LIKE 'testuser%' ORDER BY host, user;
ERROR 42000: SELECT command denied to user 'testuser3'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'testuser3'@'localhost' for table `mysql`.`user`
SHOW GRANTS; SHOW GRANTS;
Grants for testuser3@localhost Grants for testuser3@localhost
GRANT USAGE ON *.* TO `testuser3`@`localhost` GRANT USAGE ON *.* TO `testuser3`@`localhost`
...@@ -1246,12 +1246,12 @@ PRIVILEGE_TYPE USAGE ...@@ -1246,12 +1246,12 @@ PRIVILEGE_TYPE USAGE
IS_GRANTABLE NO IS_GRANTABLE NO
SELECT * FROM mysql.user SELECT * FROM mysql.user
WHERE user LIKE 'testuser%' ORDER BY host, user; WHERE user LIKE 'testuser%' ORDER BY host, user;
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `mysql`.`user`
SHOW GRANTS; SHOW GRANTS;
Grants for testuser1@localhost Grants for testuser1@localhost
GRANT USAGE ON *.* TO `testuser1`@`localhost` GRANT USAGE ON *.* TO `testuser1`@`localhost`
CREATE TABLE db_datadict.tb_55 ( c1 TEXT ); CREATE TABLE db_datadict.tb_55 ( c1 TEXT );
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table 'tb_55' ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table `db_datadict`.`tb_55`
SELECT * FROM information_schema.user_privileges SELECT * FROM information_schema.user_privileges
WHERE grantee LIKE '''testuser%''' WHERE grantee LIKE '''testuser%'''
ORDER BY grantee, table_catalog, privilege_type; ORDER BY grantee, table_catalog, privilege_type;
...@@ -1261,12 +1261,12 @@ PRIVILEGE_TYPE USAGE ...@@ -1261,12 +1261,12 @@ PRIVILEGE_TYPE USAGE
IS_GRANTABLE NO IS_GRANTABLE NO
SELECT * FROM mysql.user SELECT * FROM mysql.user
WHERE user LIKE 'testuser%' ORDER BY host, user; WHERE user LIKE 'testuser%' ORDER BY host, user;
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `mysql`.`user`
SHOW GRANTS; SHOW GRANTS;
Grants for testuser1@localhost Grants for testuser1@localhost
GRANT USAGE ON *.* TO `testuser1`@`localhost` GRANT USAGE ON *.* TO `testuser1`@`localhost`
CREATE TABLE db_datadict.tb_66 ( c1 TEXT ); CREATE TABLE db_datadict.tb_66 ( c1 TEXT );
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table 'tb_66' ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table `db_datadict`.`tb_66`
# Add ALL on db_datadict.* (and select on mysql.user) to testuser1; # Add ALL on db_datadict.* (and select on mysql.user) to testuser1;
connection default; connection default;
...@@ -1591,7 +1591,7 @@ GRANT USAGE ON *.* TO `testuser1`@`localhost` ...@@ -1591,7 +1591,7 @@ GRANT USAGE ON *.* TO `testuser1`@`localhost`
GRANT ALL PRIVILEGES ON `db_datadict`.* TO `testuser1`@`localhost` WITH GRANT OPTION GRANT ALL PRIVILEGES ON `db_datadict`.* TO `testuser1`@`localhost` WITH GRANT OPTION
GRANT SELECT ON `mysql`.`user` TO `testuser1`@`localhost` GRANT SELECT ON `mysql`.`user` TO `testuser1`@`localhost`
CREATE TABLE db_datadict.tb_56 ( c1 TEXT ); CREATE TABLE db_datadict.tb_56 ( c1 TEXT );
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table 'tb_56' ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table `db_datadict`.`tb_56`
USE db_datadict; USE db_datadict;
SELECT * FROM information_schema.user_privileges SELECT * FROM information_schema.user_privileges
WHERE grantee LIKE '''testuser%''' WHERE grantee LIKE '''testuser%'''
...@@ -1926,7 +1926,7 @@ PRIVILEGE_TYPE USAGE ...@@ -1926,7 +1926,7 @@ PRIVILEGE_TYPE USAGE
IS_GRANTABLE NO IS_GRANTABLE NO
SELECT * FROM mysql.user SELECT * FROM mysql.user
WHERE user LIKE 'testuser%' ORDER BY host, user; WHERE user LIKE 'testuser%' ORDER BY host, user;
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 'user' ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `mysql`.`user`
SHOW GRANTS; SHOW GRANTS;
Grants for testuser1@localhost Grants for testuser1@localhost
GRANT USAGE ON *.* TO `testuser1`@`localhost` GRANT USAGE ON *.* TO `testuser1`@`localhost`
......
...@@ -221,31 +221,31 @@ connect user5_2, localhost, user_2, , db_storedproc_1; ...@@ -221,31 +221,31 @@ connect user5_2, localhost, user_2, , db_storedproc_1;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
connection default; connection default;
root@localhost db_storedproc_1 root@localhost db_storedproc_1
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
grant insert on db_storedproc_1.* to 'user_1'@'localhost'; grant insert on db_storedproc_1.* to 'user_1'@'localhost';
flush privileges; flush privileges;
connection user5_2; connection user5_2;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
connection default; connection default;
root@localhost db_storedproc_1 root@localhost db_storedproc_1
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
grant SELECT on db_storedproc_1.* to 'user_1'@'localhost'; grant SELECT on db_storedproc_1.* to 'user_1'@'localhost';
flush privileges; flush privileges;
connection user5_2; connection user5_2;
...@@ -276,9 +276,9 @@ inserted outside of SP NULL ...@@ -276,9 +276,9 @@ inserted outside of SP NULL
inserted from sp5_ins 2000-10-00 inserted from sp5_ins 2000-10-00
inserted from sp5_s_i 2000-10-00 inserted from sp5_s_i 2000-10-00
inserted from sp5_ins 2000-10-00 inserted from sp5_ins 2000-10-00
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
c1 c2 c3 c1 c2 c3
inserted outside of SP NULL inserted outside of SP NULL
...@@ -294,11 +294,11 @@ connection user5_2; ...@@ -294,11 +294,11 @@ connection user5_2;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
disconnect user5_2; disconnect user5_2;
connection default; connection default;
...@@ -348,9 +348,9 @@ user_2@localhost db_storedproc_1 ...@@ -348,9 +348,9 @@ user_2@localhost db_storedproc_1
CALL sp3166_s_i(); CALL sp3166_s_i();
c1 c1
inserted outside SP inserted outside SP
ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_ins(); CALL sp3166_ins();
ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_sel(); CALL sp3166_sel();
c1 c1
inserted outside SP inserted outside SP
...@@ -390,10 +390,10 @@ connect user6_4, localhost, user_2, , db_storedproc_1; ...@@ -390,10 +390,10 @@ connect user6_4, localhost, user_2, , db_storedproc_1;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp3166_s_i(); CALL sp3166_s_i();
ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_ins(); CALL sp3166_ins();
CALL sp3166_sel(); CALL sp3166_sel();
ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
disconnect user6_4; disconnect user6_4;
connection default; connection default;
CALL sp3166_s_i(); CALL sp3166_s_i();
......
...@@ -99,7 +99,7 @@ test_noprivs@localhost ...@@ -99,7 +99,7 @@ test_noprivs@localhost
use priv_db; use priv_db;
create trigger trg1_1 before INSERT on t1 for each row create trigger trg1_1 before INSERT on t1 for each row
set new.f1 = 'trig 3.5.3.2_1-no'; set new.f1 = 'trig 3.5.3.2_1-no';
ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table `priv_db`.`t1`
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values ('insert 3.5.3.2-no'); insert into t1 (f1) values ('insert 3.5.3.2-no');
...@@ -135,7 +135,7 @@ Testcase 3.5.3.6: ...@@ -135,7 +135,7 @@ Testcase 3.5.3.6:
connection no_privs; connection no_privs;
use priv_db; use priv_db;
drop trigger trg1_2; drop trigger trg1_2;
ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table `priv_db`.`t1`
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values ('insert 3.5.3.6-yes'); insert into t1 (f1) values ('insert 3.5.3.6-yes');
...@@ -688,7 +688,7 @@ insert into t2 values (new.f1); ...@@ -688,7 +688,7 @@ insert into t2 values (new.f1);
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (4); insert into t1 (f1) values (4);
ERROR 42000: INSERT command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: INSERT command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke SELECT on priv_db.t2 from test_yesprivs@localhost; revoke SELECT on priv_db.t2 from test_yesprivs@localhost;
grant INSERT on priv_db.t2 to test_yesprivs@localhost; grant INSERT on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (4); insert into t1 (f1) values (4);
...@@ -706,7 +706,7 @@ update t2 set f2=new.f1-1; ...@@ -706,7 +706,7 @@ update t2 set f2=new.f1-1;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (2); insert into t1 (f1) values (2);
ERROR 42000: UPDATE command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: UPDATE command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke INSERT on priv_db.t2 from test_yesprivs@localhost; revoke INSERT on priv_db.t2 from test_yesprivs@localhost;
grant UPDATE on priv_db.t2 to test_yesprivs@localhost; grant UPDATE on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (2); insert into t1 (f1) values (2);
...@@ -725,7 +725,7 @@ select f2 into @aaa from t2 where f2=new.f1; ...@@ -725,7 +725,7 @@ select f2 into @aaa from t2 where f2=new.f1;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
ERROR 42000: SELECT command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke UPDATE on priv_db.t2 from test_yesprivs@localhost; revoke UPDATE on priv_db.t2 from test_yesprivs@localhost;
grant SELECT on priv_db.t2 to test_yesprivs@localhost; grant SELECT on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
...@@ -748,7 +748,7 @@ delete from t2; ...@@ -748,7 +748,7 @@ delete from t2;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
ERROR 42000: DELETE command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: DELETE command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke SELECT on priv_db.t2 from test_yesprivs@localhost; revoke SELECT on priv_db.t2 from test_yesprivs@localhost;
grant DELETE on priv_db.t2 to test_yesprivs@localhost; grant DELETE on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
......
...@@ -221,31 +221,31 @@ connect user5_2, localhost, user_2, , db_storedproc_1; ...@@ -221,31 +221,31 @@ connect user5_2, localhost, user_2, , db_storedproc_1;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
connection default; connection default;
root@localhost db_storedproc_1 root@localhost db_storedproc_1
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
grant insert on db_storedproc_1.* to 'user_1'@'localhost'; grant insert on db_storedproc_1.* to 'user_1'@'localhost';
flush privileges; flush privileges;
connection user5_2; connection user5_2;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
connection default; connection default;
root@localhost db_storedproc_1 root@localhost db_storedproc_1
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
grant SELECT on db_storedproc_1.* to 'user_1'@'localhost'; grant SELECT on db_storedproc_1.* to 'user_1'@'localhost';
flush privileges; flush privileges;
connection user5_2; connection user5_2;
...@@ -276,9 +276,9 @@ inserted outside of SP NULL ...@@ -276,9 +276,9 @@ inserted outside of SP NULL
inserted from sp5_ins 2000-10-00 inserted from sp5_ins 2000-10-00
inserted from sp5_s_i 2000-10-00 inserted from sp5_s_i 2000-10-00
inserted from sp5_ins 2000-10-00 inserted from sp5_ins 2000-10-00
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
c1 c2 c3 c1 c2 c3
inserted outside of SP NULL inserted outside of SP NULL
...@@ -294,11 +294,11 @@ connection user5_2; ...@@ -294,11 +294,11 @@ connection user5_2;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp5_s_i(); CALL sp5_s_i();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_ins(); CALL sp5_ins();
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
CALL sp5_sel(); CALL sp5_sel();
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't3165' ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table `db_storedproc_1`.`t3165`
disconnect user5_2; disconnect user5_2;
connection default; connection default;
...@@ -348,9 +348,9 @@ user_2@localhost db_storedproc_1 ...@@ -348,9 +348,9 @@ user_2@localhost db_storedproc_1
CALL sp3166_s_i(); CALL sp3166_s_i();
c1 c1
inserted outside SP inserted outside SP
ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_ins(); CALL sp3166_ins();
ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: INSERT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_sel(); CALL sp3166_sel();
c1 c1
inserted outside SP inserted outside SP
...@@ -390,10 +390,10 @@ connect user6_4, localhost, user_2, , db_storedproc_1; ...@@ -390,10 +390,10 @@ connect user6_4, localhost, user_2, , db_storedproc_1;
user_2@localhost db_storedproc_1 user_2@localhost db_storedproc_1
CALL sp3166_s_i(); CALL sp3166_s_i();
ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
CALL sp3166_ins(); CALL sp3166_ins();
CALL sp3166_sel(); CALL sp3166_sel();
ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table 't3166' ERROR 42000: SELECT command denied to user 'user_2'@'localhost' for table `db_storedproc_1`.`t3166`
disconnect user6_4; disconnect user6_4;
connection default; connection default;
CALL sp3166_s_i(); CALL sp3166_s_i();
......
...@@ -99,7 +99,7 @@ test_noprivs@localhost ...@@ -99,7 +99,7 @@ test_noprivs@localhost
use priv_db; use priv_db;
create trigger trg1_1 before INSERT on t1 for each row create trigger trg1_1 before INSERT on t1 for each row
set new.f1 = 'trig 3.5.3.2_1-no'; set new.f1 = 'trig 3.5.3.2_1-no';
ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table `priv_db`.`t1`
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values ('insert 3.5.3.2-no'); insert into t1 (f1) values ('insert 3.5.3.2-no');
...@@ -135,7 +135,7 @@ Testcase 3.5.3.6: ...@@ -135,7 +135,7 @@ Testcase 3.5.3.6:
connection no_privs; connection no_privs;
use priv_db; use priv_db;
drop trigger trg1_2; drop trigger trg1_2;
ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table 't1' ERROR 42000: TRIGGER command denied to user 'test_noprivs'@'localhost' for table `priv_db`.`t1`
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values ('insert 3.5.3.6-yes'); insert into t1 (f1) values ('insert 3.5.3.6-yes');
...@@ -688,7 +688,7 @@ insert into t2 values (new.f1); ...@@ -688,7 +688,7 @@ insert into t2 values (new.f1);
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (4); insert into t1 (f1) values (4);
ERROR 42000: INSERT command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: INSERT command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke SELECT on priv_db.t2 from test_yesprivs@localhost; revoke SELECT on priv_db.t2 from test_yesprivs@localhost;
grant INSERT on priv_db.t2 to test_yesprivs@localhost; grant INSERT on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (4); insert into t1 (f1) values (4);
...@@ -706,7 +706,7 @@ update t2 set f2=new.f1-1; ...@@ -706,7 +706,7 @@ update t2 set f2=new.f1-1;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (2); insert into t1 (f1) values (2);
ERROR 42000: UPDATE command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: UPDATE command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke INSERT on priv_db.t2 from test_yesprivs@localhost; revoke INSERT on priv_db.t2 from test_yesprivs@localhost;
grant UPDATE on priv_db.t2 to test_yesprivs@localhost; grant UPDATE on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (2); insert into t1 (f1) values (2);
...@@ -725,7 +725,7 @@ select f2 into @aaa from t2 where f2=new.f1; ...@@ -725,7 +725,7 @@ select f2 into @aaa from t2 where f2=new.f1;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
ERROR 42000: SELECT command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke UPDATE on priv_db.t2 from test_yesprivs@localhost; revoke UPDATE on priv_db.t2 from test_yesprivs@localhost;
grant SELECT on priv_db.t2 to test_yesprivs@localhost; grant SELECT on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
...@@ -748,7 +748,7 @@ delete from t2; ...@@ -748,7 +748,7 @@ delete from t2;
connection default; connection default;
use priv_db; use priv_db;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
ERROR 42000: DELETE command denied to user 'test_yesprivs'@'localhost' for table 't2' ERROR 42000: DELETE command denied to user 'test_yesprivs'@'localhost' for table `priv_db`.`t2`
revoke SELECT on priv_db.t2 from test_yesprivs@localhost; revoke SELECT on priv_db.t2 from test_yesprivs@localhost;
grant DELETE on priv_db.t2 to test_yesprivs@localhost; grant DELETE on priv_db.t2 to test_yesprivs@localhost;
insert into t1 (f1) values (1); insert into t1 (f1) values (1);
......
...@@ -31,7 +31,7 @@ GRANT USAGE ON *.* TO `foo`@`localhost` ...@@ -31,7 +31,7 @@ GRANT USAGE ON *.* TO `foo`@`localhost`
FLUSH TABLES; FLUSH TABLES;
ERROR 42000: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation ERROR 42000: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
SELECT * FROM mysql.roles_mapping; SELECT * FROM mysql.roles_mapping;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'roles_mapping' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `mysql`.`roles_mapping`
SHOW TABLES FROM test1; SHOW TABLES FROM test1;
ERROR 42000: Access denied for user 'foo'@'localhost' to database 'test1' ERROR 42000: Access denied for user 'foo'@'localhost' to database 'test1'
SET ROLE role1; SET ROLE role1;
...@@ -49,7 +49,7 @@ a b ...@@ -49,7 +49,7 @@ a b
1 2 1 2
3 4 3 4
SELECT * FROM test1.t2; SELECT * FROM test1.t2;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `test1`.`t2`
SELECT a FROM test1.t2; SELECT a FROM test1.t2;
a a
5 5
...@@ -67,7 +67,7 @@ GRANT USAGE ON *.* TO `foo`@`localhost` ...@@ -67,7 +67,7 @@ GRANT USAGE ON *.* TO `foo`@`localhost`
FLUSH TABLES; FLUSH TABLES;
ERROR 42000: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation ERROR 42000: Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
SELECT * FROM mysql.roles_mapping; SELECT * FROM mysql.roles_mapping;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'roles_mapping' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `mysql`.`roles_mapping`
SHOW TABLES FROM test1; SHOW TABLES FROM test1;
ERROR 42000: Access denied for user 'foo'@'localhost' to database 'test1' ERROR 42000: Access denied for user 'foo'@'localhost' to database 'test1'
SET ROLE role1; SET ROLE role1;
...@@ -85,7 +85,7 @@ a b ...@@ -85,7 +85,7 @@ a b
1 2 1 2
3 4 3 4
SELECT * FROM test1.t2; SELECT * FROM test1.t2;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `test1`.`t2`
SELECT a FROM test1.t2; SELECT a FROM test1.t2;
a a
5 5
...@@ -122,11 +122,11 @@ DROP ROLE role1; ...@@ -122,11 +122,11 @@ DROP ROLE role1;
connection foo_node_1; connection foo_node_1;
FLUSH TABLES; FLUSH TABLES;
SELECT * FROM mysql.roles_mapping; SELECT * FROM mysql.roles_mapping;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'roles_mapping' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `mysql`.`roles_mapping`
SELECT * FROM test1.t1; SELECT * FROM test1.t1;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `test1`.`t1`
SELECT a FROM test1.t2; SELECT a FROM test1.t2;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `test1`.`t2`
SHOW GRANTS; SHOW GRANTS;
Grants for foo@localhost Grants for foo@localhost
GRANT USAGE ON *.* TO `foo`@`localhost` GRANT USAGE ON *.* TO `foo`@`localhost`
...@@ -144,11 +144,11 @@ role1 ...@@ -144,11 +144,11 @@ role1
connection foo_node_2; connection foo_node_2;
FLUSH TABLES; FLUSH TABLES;
SELECT * FROM mysql.roles_mapping; SELECT * FROM mysql.roles_mapping;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 'roles_mapping' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `mysql`.`roles_mapping`
SELECT * FROM test1.t1; SELECT * FROM test1.t1;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't1' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `test1`.`t1`
SELECT a FROM test1.t2; SELECT a FROM test1.t2;
ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table 't2' ERROR 42000: SELECT command denied to user 'foo'@'localhost' for table `test1`.`t2`
SHOW GRANTS; SHOW GRANTS;
Grants for foo@localhost Grants for foo@localhost
GRANT USAGE ON *.* TO `foo`@`localhost` GRANT USAGE ON *.* TO `foo`@`localhost`
......
...@@ -21,7 +21,7 @@ i ...@@ -21,7 +21,7 @@ i
1 1
# Following RENAME should not replicate to other node. # Following RENAME should not replicate to other node.
RENAME TABLE t1 TO t2; RENAME TABLE t1 TO t2;
ERROR 42000: DROP, ALTER command denied to user 'foo'@'localhost' for table 't1' ERROR 42000: DROP, ALTER command denied to user 'foo'@'localhost' for table `test`.`t1`
# On node 2 # On node 2
connection node_2; connection node_2;
USE test; USE test;
......
...@@ -13,7 +13,7 @@ Grants for test1@localhost ...@@ -13,7 +13,7 @@ Grants for test1@localhost
GRANT USAGE ON *.* TO `test1`@`localhost` GRANT USAGE ON *.* TO `test1`@`localhost`
GRANT SELECT, INSERT, CREATE, DROP ON `test`.* TO `test1`@`localhost` GRANT SELECT, INSERT, CREATE, DROP ON `test`.* TO `test1`@`localhost`
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: ALTER command denied to user 'test1'@'localhost' for table 'tp' ERROR 42000: ALTER command denied to user 'test1'@'localhost' for table `test`.`tp`
disconnect test1; disconnect test1;
connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK; connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
USE test; USE test;
...@@ -83,7 +83,7 @@ Grants for test2@localhost ...@@ -83,7 +83,7 @@ Grants for test2@localhost
GRANT USAGE ON *.* TO `test2`@`localhost` GRANT USAGE ON *.* TO `test2`@`localhost`
GRANT SELECT, INSERT, UPDATE, CREATE, DROP ON `test`.* TO `test2`@`localhost` GRANT SELECT, INSERT, UPDATE, CREATE, DROP ON `test`.* TO `test2`@`localhost`
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tp`
SELECT * FROM tp WHERE a BETWEEN 0 AND 10; SELECT * FROM tp WHERE a BETWEEN 0 AND 10;
a b a b
2 Two 2 Two
...@@ -91,11 +91,11 @@ a b ...@@ -91,11 +91,11 @@ a b
6 Six 6 Six
8 Eight 8 Eight
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tp`
ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00; ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tsp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tsp`
ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00; ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tsp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tsp`
connection default; connection default;
disconnect test2; disconnect test2;
DROP TABLE IF EXISTS t_10; DROP TABLE IF EXISTS t_10;
......
...@@ -13,7 +13,7 @@ Grants for test1@localhost ...@@ -13,7 +13,7 @@ Grants for test1@localhost
GRANT USAGE ON *.* TO `test1`@`localhost` GRANT USAGE ON *.* TO `test1`@`localhost`
GRANT SELECT, INSERT, CREATE, DROP ON `test`.* TO `test1`@`localhost` GRANT SELECT, INSERT, CREATE, DROP ON `test`.* TO `test1`@`localhost`
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: ALTER command denied to user 'test1'@'localhost' for table 'tp' ERROR 42000: ALTER command denied to user 'test1'@'localhost' for table `test`.`tp`
disconnect test1; disconnect test1;
connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK; connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
USE test; USE test;
...@@ -83,7 +83,7 @@ Grants for test2@localhost ...@@ -83,7 +83,7 @@ Grants for test2@localhost
GRANT USAGE ON *.* TO `test2`@`localhost` GRANT USAGE ON *.* TO `test2`@`localhost`
GRANT SELECT, INSERT, UPDATE, CREATE, DROP ON `test`.* TO `test2`@`localhost` GRANT SELECT, INSERT, UPDATE, CREATE, DROP ON `test`.* TO `test2`@`localhost`
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tp`
SELECT * FROM tp WHERE a BETWEEN 0 AND 10; SELECT * FROM tp WHERE a BETWEEN 0 AND 10;
a b a b
2 Two 2 Two
...@@ -91,11 +91,11 @@ a b ...@@ -91,11 +91,11 @@ a b
6 Six 6 Six
8 Eight 8 Eight
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tp`
ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00; ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tsp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tsp`
ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00; ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00;
ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table 'tsp' ERROR 42000: ALTER command denied to user 'test2'@'localhost' for table `test`.`tsp`
connection default; connection default;
disconnect test2; disconnect test2;
DROP TABLE IF EXISTS t_10; DROP TABLE IF EXISTS t_10;
......
...@@ -117,7 +117,7 @@ Grants for test2@localhost ...@@ -117,7 +117,7 @@ Grants for test2@localhost
GRANT USAGE ON *.* TO `test2`@`localhost` GRANT USAGE ON *.* TO `test2`@`localhost`
GRANT SELECT, UPDATE, CREATE, DROP, ALTER ON `test`.* TO `test2`@`localhost` GRANT SELECT, UPDATE, CREATE, DROP, ALTER ON `test`.* TO `test2`@`localhost`
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table `test`.`tp`
disconnect test2; disconnect test2;
connection default; connection default;
GRANT INSERT ON test.* TO test2@localhost; GRANT INSERT ON test.* TO test2@localhost;
...@@ -129,7 +129,7 @@ Grants for test2@localhost ...@@ -129,7 +129,7 @@ Grants for test2@localhost
GRANT USAGE ON *.* TO `test2`@`localhost` GRANT USAGE ON *.* TO `test2`@`localhost`
GRANT SELECT, INSERT, UPDATE, DROP, ALTER ON `test`.* TO `test2`@`localhost` GRANT SELECT, INSERT, UPDATE, DROP, ALTER ON `test`.* TO `test2`@`localhost`
ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00; ALTER TABLE tsp EXCHANGE PARTITION sp00 WITH TABLE tsp_00;
ERROR 42000: CREATE command denied to user 'test2'@'localhost' for table 'tsp' ERROR 42000: CREATE command denied to user 'test2'@'localhost' for table `test`.`tsp`
disconnect test2; disconnect test2;
connection default; connection default;
GRANT CREATE ON test.* TO test2@localhost; GRANT CREATE ON test.* TO test2@localhost;
...@@ -140,7 +140,7 @@ Grants for test2@localhost ...@@ -140,7 +140,7 @@ Grants for test2@localhost
GRANT USAGE ON *.* TO `test2`@`localhost` GRANT USAGE ON *.* TO `test2`@`localhost`
GRANT SELECT, INSERT, UPDATE, CREATE, ALTER ON `test`.* TO `test2`@`localhost` GRANT SELECT, INSERT, UPDATE, CREATE, ALTER ON `test`.* TO `test2`@`localhost`
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: DROP command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: DROP command denied to user 'test2'@'localhost' for table `test`.`tp`
disconnect test2; disconnect test2;
connection default; connection default;
DROP TABLE IF EXISTS t_10; DROP TABLE IF EXISTS t_10;
......
...@@ -62,9 +62,9 @@ connection default; ...@@ -62,9 +62,9 @@ connection default;
REVOKE INSERT ON testdb.* FROM test2@localhost; REVOKE INSERT ON testdb.* FROM test2@localhost;
connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK; connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE testdb.t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE testdb.t_10;
ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table 't_10' ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table `testdb`.`t_10`
ALTER TABLE testdb.tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE testdb.tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table `testdb`.`tp`
disconnect test2; disconnect test2;
connection default; connection default;
DROP TABLE IF EXISTS t_10; DROP TABLE IF EXISTS t_10;
......
...@@ -62,9 +62,9 @@ connection default; ...@@ -62,9 +62,9 @@ connection default;
REVOKE INSERT ON testdb.* FROM test2@localhost; REVOKE INSERT ON testdb.* FROM test2@localhost;
connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK; connect test2,localhost,test2,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE testdb.t_10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE testdb.t_10;
ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table 't_10' ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table `testdb`.`t_10`
ALTER TABLE testdb.tp EXCHANGE PARTITION p0 WITH TABLE t_10; ALTER TABLE testdb.tp EXCHANGE PARTITION p0 WITH TABLE t_10;
ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table 'tp' ERROR 42000: INSERT command denied to user 'test2'@'localhost' for table `testdb`.`tp`
disconnect test2; disconnect test2;
connection default; connection default;
DROP TABLE IF EXISTS t_10; DROP TABLE IF EXISTS t_10;
......
...@@ -40,10 +40,10 @@ COUNT(DISTINCT PROCESSLIST_ID) ...@@ -40,10 +40,10 @@ COUNT(DISTINCT PROCESSLIST_ID)
connection non_privileged_user; connection non_privileged_user;
SELECT COUNT(DISTINCT PROCESSLIST_ID) SELECT COUNT(DISTINCT PROCESSLIST_ID)
FROM performance_schema.session_account_connect_attrs; FROM performance_schema.session_account_connect_attrs;
ERROR 42000: SELECT command denied to user 'wl5924'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: SELECT command denied to user 'wl5924'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
SELECT COUNT(DISTINCT PROCESSLIST_ID) SELECT COUNT(DISTINCT PROCESSLIST_ID)
FROM performance_schema.session_connect_attrs; FROM performance_schema.session_connect_attrs;
ERROR 42000: SELECT command denied to user 'wl5924'@'localhost' for table 'session_connect_attrs' ERROR 42000: SELECT command denied to user 'wl5924'@'localhost' for table `performance_schema`.`session_connect_attrs`
connection default; connection default;
disconnect non_privileged_user; disconnect non_privileged_user;
grant select on performance_schema.* to wl5924@localhost; grant select on performance_schema.* to wl5924@localhost;
......
...@@ -5,23 +5,23 @@ where user='FOO' or host='BAR'; ...@@ -5,23 +5,23 @@ where user='FOO' or host='BAR';
insert into performance_schema.accounts insert into performance_schema.accounts
set user='FOO', host='BAR', set user='FOO', host='BAR',
current_connections=1, total_connections=2; current_connections=1, total_connections=2;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
update performance_schema.accounts update performance_schema.accounts
set current_connections=12; set current_connections=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
update performance_schema.accounts update performance_schema.accounts
set current_connections=12 where host like "FOO"; set current_connections=12 where host like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
delete from performance_schema.accounts delete from performance_schema.accounts
where total_connections=1; where total_connections=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
delete from performance_schema.accounts; delete from performance_schema.accounts;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
LOCK TABLES performance_schema.accounts READ; LOCK TABLES performance_schema.accounts READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.accounts WRITE; LOCK TABLES performance_schema.accounts WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'accounts' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`accounts`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -3,20 +3,20 @@ select * from performance_schema.cond_instances ...@@ -3,20 +3,20 @@ select * from performance_schema.cond_instances
where name='FOO'; where name='FOO';
insert into performance_schema.cond_instances insert into performance_schema.cond_instances
set name='FOO', object_instance_begin=12; set name='FOO', object_instance_begin=12;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'cond_instances' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances`
update performance_schema.cond_instances update performance_schema.cond_instances
set name='FOO'; set name='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'cond_instances' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances`
delete from performance_schema.cond_instances delete from performance_schema.cond_instances
where name like "wait/%"; where name like "wait/%";
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'cond_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances`
delete from performance_schema.cond_instances; delete from performance_schema.cond_instances;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'cond_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances`
LOCK TABLES performance_schema.cond_instances READ; LOCK TABLES performance_schema.cond_instances READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'cond_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.cond_instances WRITE; LOCK TABLES performance_schema.cond_instances WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'cond_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_account_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_account_by_event_name
set event_name='FOO', user='BAR', host='BAZ', set event_name='FOO', user='BAR', host='BAZ',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
update performance_schema.events_stages_summary_by_account_by_event_name update performance_schema.events_stages_summary_by_account_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
update performance_schema.events_stages_summary_by_account_by_event_name update performance_schema.events_stages_summary_by_account_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
delete from performance_schema.events_stages_summary_by_account_by_event_name delete from performance_schema.events_stages_summary_by_account_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
delete from performance_schema.events_stages_summary_by_account_by_event_name; delete from performance_schema.events_stages_summary_by_account_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
LOCK TABLES performance_schema.events_stages_summary_by_account_by_event_name READ; LOCK TABLES performance_schema.events_stages_summary_by_account_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_summary_by_account_by_event_name WRITE; LOCK TABLES performance_schema.events_stages_summary_by_account_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_account_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_host_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_host_by_event_name
set event_name='FOO', thread_id=1, set event_name='FOO', thread_id=1,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
update performance_schema.events_stages_summary_by_host_by_event_name update performance_schema.events_stages_summary_by_host_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
update performance_schema.events_stages_summary_by_host_by_event_name update performance_schema.events_stages_summary_by_host_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
delete from performance_schema.events_stages_summary_by_host_by_event_name delete from performance_schema.events_stages_summary_by_host_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
delete from performance_schema.events_stages_summary_by_host_by_event_name; delete from performance_schema.events_stages_summary_by_host_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
LOCK TABLES performance_schema.events_stages_summary_by_host_by_event_name READ; LOCK TABLES performance_schema.events_stages_summary_by_host_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_summary_by_host_by_event_name WRITE; LOCK TABLES performance_schema.events_stages_summary_by_host_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_host_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_thread_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_thread_by_event_name
set event_name='FOO', thread_id=1, set event_name='FOO', thread_id=1,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
update performance_schema.events_stages_summary_by_thread_by_event_name update performance_schema.events_stages_summary_by_thread_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
update performance_schema.events_stages_summary_by_thread_by_event_name update performance_schema.events_stages_summary_by_thread_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
delete from performance_schema.events_stages_summary_by_thread_by_event_name delete from performance_schema.events_stages_summary_by_thread_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
delete from performance_schema.events_stages_summary_by_thread_by_event_name; delete from performance_schema.events_stages_summary_by_thread_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
LOCK TABLES performance_schema.events_stages_summary_by_thread_by_event_name READ; LOCK TABLES performance_schema.events_stages_summary_by_thread_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_summary_by_thread_by_event_name WRITE; LOCK TABLES performance_schema.events_stages_summary_by_thread_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_thread_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_user_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_stages_summary_by_user_by_event_name
set event_name='FOO', user='BAR', set event_name='FOO', user='BAR',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
update performance_schema.events_stages_summary_by_user_by_event_name update performance_schema.events_stages_summary_by_user_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
update performance_schema.events_stages_summary_by_user_by_event_name update performance_schema.events_stages_summary_by_user_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
delete from performance_schema.events_stages_summary_by_user_by_event_name delete from performance_schema.events_stages_summary_by_user_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
delete from performance_schema.events_stages_summary_by_user_by_event_name; delete from performance_schema.events_stages_summary_by_user_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
LOCK TABLES performance_schema.events_stages_summary_by_user_by_event_name READ; LOCK TABLES performance_schema.events_stages_summary_by_user_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_summary_by_user_by_event_name WRITE; LOCK TABLES performance_schema.events_stages_summary_by_user_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_by_user_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.events_stages_summary_global_by_event_name insert into performance_schema.events_stages_summary_global_by_event_name
set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
update performance_schema.events_stages_summary_global_by_event_name update performance_schema.events_stages_summary_global_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
update performance_schema.events_stages_summary_global_by_event_name update performance_schema.events_stages_summary_global_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
delete from performance_schema.events_stages_summary_global_by_event_name delete from performance_schema.events_stages_summary_global_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
delete from performance_schema.events_stages_summary_global_by_event_name; delete from performance_schema.events_stages_summary_global_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
LOCK TABLES performance_schema.events_stages_summary_global_by_event_name READ; LOCK TABLES performance_schema.events_stages_summary_global_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_summary_global_by_event_name WRITE; LOCK TABLES performance_schema.events_stages_summary_global_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_summary_global_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_account_by_event_nam ...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_account_by_event_nam
set event_name='FOO', user='BAR', host='BAZ', set event_name='FOO', user='BAR', host='BAZ',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
update performance_schema.events_statements_summary_by_account_by_event_name update performance_schema.events_statements_summary_by_account_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
update performance_schema.events_statements_summary_by_account_by_event_name update performance_schema.events_statements_summary_by_account_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
delete from performance_schema.events_statements_summary_by_account_by_event_name delete from performance_schema.events_statements_summary_by_account_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
delete from performance_schema.events_statements_summary_by_account_by_event_name; delete from performance_schema.events_statements_summary_by_account_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
LOCK TABLES performance_schema.events_statements_summary_by_account_by_event_name READ; LOCK TABLES performance_schema.events_statements_summary_by_account_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_summary_by_account_by_event_name WRITE; LOCK TABLES performance_schema.events_statements_summary_by_account_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_account_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -7,23 +7,23 @@ SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIME ...@@ -7,23 +7,23 @@ SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIME
insert into performance_schema.events_statements_summary_by_digest insert into performance_schema.events_statements_summary_by_digest
set digest='XXYYZZ', count_star=1, sum_timer_wait=2, min_timer_wait=3, set digest='XXYYZZ', count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
update performance_schema.events_statements_summary_by_digest update performance_schema.events_statements_summary_by_digest
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
update performance_schema.events_statements_summary_by_digest update performance_schema.events_statements_summary_by_digest
set count_star=12 where digest like "XXYYZZ"; set count_star=12 where digest like "XXYYZZ";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
delete from performance_schema.events_statements_summary_by_digest delete from performance_schema.events_statements_summary_by_digest
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
delete from performance_schema.events_statements_summary_by_digest; delete from performance_schema.events_statements_summary_by_digest;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
LOCK TABLES performance_schema.events_statements_summary_by_digest READ; LOCK TABLES performance_schema.events_statements_summary_by_digest READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_summary_by_digest WRITE; LOCK TABLES performance_schema.events_statements_summary_by_digest WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_digest' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_host_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_host_by_event_name
set event_name='FOO', thread_id=1, set event_name='FOO', thread_id=1,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
update performance_schema.events_statements_summary_by_host_by_event_name update performance_schema.events_statements_summary_by_host_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
update performance_schema.events_statements_summary_by_host_by_event_name update performance_schema.events_statements_summary_by_host_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
delete from performance_schema.events_statements_summary_by_host_by_event_name delete from performance_schema.events_statements_summary_by_host_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
delete from performance_schema.events_statements_summary_by_host_by_event_name; delete from performance_schema.events_statements_summary_by_host_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
LOCK TABLES performance_schema.events_statements_summary_by_host_by_event_name READ; LOCK TABLES performance_schema.events_statements_summary_by_host_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_summary_by_host_by_event_name WRITE; LOCK TABLES performance_schema.events_statements_summary_by_host_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_host_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_thread_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_thread_by_event_name
set event_name='FOO', thread_id=1, set event_name='FOO', thread_id=1,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
update performance_schema.events_statements_summary_by_thread_by_event_name update performance_schema.events_statements_summary_by_thread_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
update performance_schema.events_statements_summary_by_thread_by_event_name update performance_schema.events_statements_summary_by_thread_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
delete from performance_schema.events_statements_summary_by_thread_by_event_name delete from performance_schema.events_statements_summary_by_thread_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
delete from performance_schema.events_statements_summary_by_thread_by_event_name; delete from performance_schema.events_statements_summary_by_thread_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
LOCK TABLES performance_schema.events_statements_summary_by_thread_by_event_name READ; LOCK TABLES performance_schema.events_statements_summary_by_thread_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_summary_by_thread_by_event_name WRITE; LOCK TABLES performance_schema.events_statements_summary_by_thread_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_thread_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_user_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_statements_summary_by_user_by_event_name
set event_name='FOO', user='BAR', set event_name='FOO', user='BAR',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
update performance_schema.events_statements_summary_by_user_by_event_name update performance_schema.events_statements_summary_by_user_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
update performance_schema.events_statements_summary_by_user_by_event_name update performance_schema.events_statements_summary_by_user_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
delete from performance_schema.events_statements_summary_by_user_by_event_name delete from performance_schema.events_statements_summary_by_user_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
delete from performance_schema.events_statements_summary_by_user_by_event_name; delete from performance_schema.events_statements_summary_by_user_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
LOCK TABLES performance_schema.events_statements_summary_by_user_by_event_name READ; LOCK TABLES performance_schema.events_statements_summary_by_user_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_summary_by_user_by_event_name WRITE; LOCK TABLES performance_schema.events_statements_summary_by_user_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_by_user_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.events_statements_summary_global_by_event_name insert into performance_schema.events_statements_summary_global_by_event_name
set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
update performance_schema.events_statements_summary_global_by_event_name update performance_schema.events_statements_summary_global_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
update performance_schema.events_statements_summary_global_by_event_name update performance_schema.events_statements_summary_global_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
delete from performance_schema.events_statements_summary_global_by_event_name delete from performance_schema.events_statements_summary_global_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
delete from performance_schema.events_statements_summary_global_by_event_name; delete from performance_schema.events_statements_summary_global_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
LOCK TABLES performance_schema.events_statements_summary_global_by_event_name READ; LOCK TABLES performance_schema.events_statements_summary_global_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_summary_global_by_event_name WRITE; LOCK TABLES performance_schema.events_statements_summary_global_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_summary_global_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.events_stages_current insert into performance_schema.events_stages_current
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
update performance_schema.events_stages_current update performance_schema.events_stages_current
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
update performance_schema.events_stages_current update performance_schema.events_stages_current
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
delete from performance_schema.events_stages_current delete from performance_schema.events_stages_current
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
delete from performance_schema.events_stages_current; delete from performance_schema.events_stages_current;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
LOCK TABLES performance_schema.events_stages_current READ; LOCK TABLES performance_schema.events_stages_current READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_current WRITE; LOCK TABLES performance_schema.events_stages_current WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_current' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ where event_name like 'stage/%' order by timer_wait desc limit 1; ...@@ -9,23 +9,23 @@ where event_name like 'stage/%' order by timer_wait desc limit 1;
insert into performance_schema.events_stages_history insert into performance_schema.events_stages_history
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
update performance_schema.events_stages_history update performance_schema.events_stages_history
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
update performance_schema.events_stages_history update performance_schema.events_stages_history
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
delete from performance_schema.events_stages_history delete from performance_schema.events_stages_history
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
delete from performance_schema.events_stages_history; delete from performance_schema.events_stages_history;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
LOCK TABLES performance_schema.events_stages_history READ; LOCK TABLES performance_schema.events_stages_history READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_history WRITE; LOCK TABLES performance_schema.events_stages_history WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_history' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ where event_name like 'stage/%' order by timer_wait desc limit 1; ...@@ -9,23 +9,23 @@ where event_name like 'stage/%' order by timer_wait desc limit 1;
insert into performance_schema.events_stages_history_long insert into performance_schema.events_stages_history_long
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
update performance_schema.events_stages_history_long update performance_schema.events_stages_history_long
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
update performance_schema.events_stages_history_long update performance_schema.events_stages_history_long
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
delete from performance_schema.events_stages_history_long delete from performance_schema.events_stages_history_long
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
delete from performance_schema.events_stages_history_long; delete from performance_schema.events_stages_history_long;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
LOCK TABLES performance_schema.events_stages_history_long READ; LOCK TABLES performance_schema.events_stages_history_long READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_stages_history_long WRITE; LOCK TABLES performance_schema.events_stages_history_long WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_stages_history_long' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.events_statements_current insert into performance_schema.events_statements_current
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
update performance_schema.events_statements_current update performance_schema.events_statements_current
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
update performance_schema.events_statements_current update performance_schema.events_statements_current
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
delete from performance_schema.events_statements_current delete from performance_schema.events_statements_current
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
delete from performance_schema.events_statements_current; delete from performance_schema.events_statements_current;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
LOCK TABLES performance_schema.events_statements_current READ; LOCK TABLES performance_schema.events_statements_current READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_current WRITE; LOCK TABLES performance_schema.events_statements_current WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_current' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ where event_name like 'statement/%' order by timer_wait desc limit 1; ...@@ -9,23 +9,23 @@ where event_name like 'statement/%' order by timer_wait desc limit 1;
insert into performance_schema.events_statements_history insert into performance_schema.events_statements_history
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
update performance_schema.events_statements_history update performance_schema.events_statements_history
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
update performance_schema.events_statements_history update performance_schema.events_statements_history
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
delete from performance_schema.events_statements_history delete from performance_schema.events_statements_history
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
delete from performance_schema.events_statements_history; delete from performance_schema.events_statements_history;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
LOCK TABLES performance_schema.events_statements_history READ; LOCK TABLES performance_schema.events_statements_history READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_history WRITE; LOCK TABLES performance_schema.events_statements_history WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_history' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ where event_name like 'statement/%' order by timer_wait desc limit 1; ...@@ -9,23 +9,23 @@ where event_name like 'statement/%' order by timer_wait desc limit 1;
insert into performance_schema.events_statements_history_long insert into performance_schema.events_statements_history_long
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
update performance_schema.events_statements_history_long update performance_schema.events_statements_history_long
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
update performance_schema.events_statements_history_long update performance_schema.events_statements_history_long
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
delete from performance_schema.events_statements_history_long delete from performance_schema.events_statements_history_long
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
delete from performance_schema.events_statements_history_long; delete from performance_schema.events_statements_history_long;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
LOCK TABLES performance_schema.events_statements_history_long READ; LOCK TABLES performance_schema.events_statements_history_long READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_statements_history_long WRITE; LOCK TABLES performance_schema.events_statements_history_long WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_statements_history_long' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.events_waits_current insert into performance_schema.events_waits_current
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
update performance_schema.events_waits_current update performance_schema.events_waits_current
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
update performance_schema.events_waits_current update performance_schema.events_waits_current
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
delete from performance_schema.events_waits_current delete from performance_schema.events_waits_current
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
delete from performance_schema.events_waits_current; delete from performance_schema.events_waits_current;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
LOCK TABLES performance_schema.events_waits_current READ; LOCK TABLES performance_schema.events_waits_current READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_current WRITE; LOCK TABLES performance_schema.events_waits_current WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_current' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1; ...@@ -9,23 +9,23 @@ where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1;
insert into performance_schema.events_waits_history insert into performance_schema.events_waits_history
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
update performance_schema.events_waits_history update performance_schema.events_waits_history
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
update performance_schema.events_waits_history update performance_schema.events_waits_history
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
delete from performance_schema.events_waits_history delete from performance_schema.events_waits_history
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
delete from performance_schema.events_waits_history; delete from performance_schema.events_waits_history;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
LOCK TABLES performance_schema.events_waits_history READ; LOCK TABLES performance_schema.events_waits_history READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_history WRITE; LOCK TABLES performance_schema.events_waits_history WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_history' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1; ...@@ -9,23 +9,23 @@ where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1;
insert into performance_schema.events_waits_history_long insert into performance_schema.events_waits_history_long
set thread_id='1', event_id=1, set thread_id='1', event_id=1,
event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; event_name='FOO', timer_start=1, timer_end=2, timer_wait=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
update performance_schema.events_waits_history_long update performance_schema.events_waits_history_long
set timer_start=12; set timer_start=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
update performance_schema.events_waits_history_long update performance_schema.events_waits_history_long
set timer_start=12 where thread_id=0; set timer_start=12 where thread_id=0;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
delete from performance_schema.events_waits_history_long delete from performance_schema.events_waits_history_long
where thread_id=1; where thread_id=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
delete from performance_schema.events_waits_history_long; delete from performance_schema.events_waits_history_long;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
LOCK TABLES performance_schema.events_waits_history_long READ; LOCK TABLES performance_schema.events_waits_history_long READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_history_long WRITE; LOCK TABLES performance_schema.events_waits_history_long WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_history_long' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ insert into performance_schema.events_waits_summary_by_account_by_event_name ...@@ -9,23 +9,23 @@ insert into performance_schema.events_waits_summary_by_account_by_event_name
set event_name='FOO', user='BAR', host='BAZ', set event_name='FOO', user='BAR', host='BAZ',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
update performance_schema.events_waits_summary_by_account_by_event_name update performance_schema.events_waits_summary_by_account_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
update performance_schema.events_waits_summary_by_account_by_event_name update performance_schema.events_waits_summary_by_account_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
delete from performance_schema.events_waits_summary_by_account_by_event_name delete from performance_schema.events_waits_summary_by_account_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
delete from performance_schema.events_waits_summary_by_account_by_event_name; delete from performance_schema.events_waits_summary_by_account_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
LOCK TABLES performance_schema.events_waits_summary_by_account_by_event_name READ; LOCK TABLES performance_schema.events_waits_summary_by_account_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_summary_by_account_by_event_name WRITE; LOCK TABLES performance_schema.events_waits_summary_by_account_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_account_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ insert into performance_schema.events_waits_summary_by_host_by_event_name ...@@ -9,23 +9,23 @@ insert into performance_schema.events_waits_summary_by_host_by_event_name
set event_name='FOO', thread_id=1, set event_name='FOO', thread_id=1,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
update performance_schema.events_waits_summary_by_host_by_event_name update performance_schema.events_waits_summary_by_host_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
update performance_schema.events_waits_summary_by_host_by_event_name update performance_schema.events_waits_summary_by_host_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
delete from performance_schema.events_waits_summary_by_host_by_event_name delete from performance_schema.events_waits_summary_by_host_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
delete from performance_schema.events_waits_summary_by_host_by_event_name; delete from performance_schema.events_waits_summary_by_host_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
LOCK TABLES performance_schema.events_waits_summary_by_host_by_event_name READ; LOCK TABLES performance_schema.events_waits_summary_by_host_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_summary_by_host_by_event_name WRITE; LOCK TABLES performance_schema.events_waits_summary_by_host_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_host_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -14,23 +14,23 @@ insert into performance_schema.events_waits_summary_by_instance ...@@ -14,23 +14,23 @@ insert into performance_schema.events_waits_summary_by_instance
set event_name='FOO', object_instance_begin=0, set event_name='FOO', object_instance_begin=0,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
update performance_schema.events_waits_summary_by_instance update performance_schema.events_waits_summary_by_instance
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
update performance_schema.events_waits_summary_by_instance update performance_schema.events_waits_summary_by_instance
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
delete from performance_schema.events_waits_summary_by_instance delete from performance_schema.events_waits_summary_by_instance
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
delete from performance_schema.events_waits_summary_by_instance; delete from performance_schema.events_waits_summary_by_instance;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
LOCK TABLES performance_schema.events_waits_summary_by_instance READ; LOCK TABLES performance_schema.events_waits_summary_by_instance READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_summary_by_instance WRITE; LOCK TABLES performance_schema.events_waits_summary_by_instance WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_instance' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -6,23 +6,23 @@ insert into performance_schema.events_waits_summary_by_thread_by_event_name ...@@ -6,23 +6,23 @@ insert into performance_schema.events_waits_summary_by_thread_by_event_name
set event_name='FOO', thread_id=1, set event_name='FOO', thread_id=1,
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
update performance_schema.events_waits_summary_by_thread_by_event_name update performance_schema.events_waits_summary_by_thread_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
update performance_schema.events_waits_summary_by_thread_by_event_name update performance_schema.events_waits_summary_by_thread_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
delete from performance_schema.events_waits_summary_by_thread_by_event_name delete from performance_schema.events_waits_summary_by_thread_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
delete from performance_schema.events_waits_summary_by_thread_by_event_name; delete from performance_schema.events_waits_summary_by_thread_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
LOCK TABLES performance_schema.events_waits_summary_by_thread_by_event_name READ; LOCK TABLES performance_schema.events_waits_summary_by_thread_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_summary_by_thread_by_event_name WRITE; LOCK TABLES performance_schema.events_waits_summary_by_thread_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -9,23 +9,23 @@ insert into performance_schema.events_waits_summary_by_user_by_event_name ...@@ -9,23 +9,23 @@ insert into performance_schema.events_waits_summary_by_user_by_event_name
set event_name='FOO', user='BAR', set event_name='FOO', user='BAR',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
update performance_schema.events_waits_summary_by_user_by_event_name update performance_schema.events_waits_summary_by_user_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
update performance_schema.events_waits_summary_by_user_by_event_name update performance_schema.events_waits_summary_by_user_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
delete from performance_schema.events_waits_summary_by_user_by_event_name delete from performance_schema.events_waits_summary_by_user_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
delete from performance_schema.events_waits_summary_by_user_by_event_name; delete from performance_schema.events_waits_summary_by_user_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name READ; LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name WRITE; LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_user_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.events_waits_summary_global_by_event_name insert into performance_schema.events_waits_summary_global_by_event_name
set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
update performance_schema.events_waits_summary_global_by_event_name update performance_schema.events_waits_summary_global_by_event_name
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
update performance_schema.events_waits_summary_global_by_event_name update performance_schema.events_waits_summary_global_by_event_name
set count_star=12 where event_name like "FOO"; set count_star=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
delete from performance_schema.events_waits_summary_global_by_event_name delete from performance_schema.events_waits_summary_global_by_event_name
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
delete from performance_schema.events_waits_summary_global_by_event_name; delete from performance_schema.events_waits_summary_global_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
LOCK TABLES performance_schema.events_waits_summary_global_by_event_name READ; LOCK TABLES performance_schema.events_waits_summary_global_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.events_waits_summary_global_by_event_name WRITE; LOCK TABLES performance_schema.events_waits_summary_global_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_global_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -3,20 +3,20 @@ select * from performance_schema.file_instances ...@@ -3,20 +3,20 @@ select * from performance_schema.file_instances
where file_name='FOO'; where file_name='FOO';
insert into performance_schema.file_instances insert into performance_schema.file_instances
set file_name='FOO', event_name='BAR', open_count=12; set file_name='FOO', event_name='BAR', open_count=12;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_instances' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances`
update performance_schema.file_instances update performance_schema.file_instances
set file_name='FOO'; set file_name='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_instances' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances`
delete from performance_schema.file_instances delete from performance_schema.file_instances
where event_name like "wait/%"; where event_name like "wait/%";
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances`
delete from performance_schema.file_instances; delete from performance_schema.file_instances;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances`
LOCK TABLES performance_schema.file_instances READ; LOCK TABLES performance_schema.file_instances READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.file_instances WRITE; LOCK TABLES performance_schema.file_instances WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.file_summary_by_event_name insert into performance_schema.file_summary_by_event_name
set event_name='FOO', count_read=1, count_write=2, set event_name='FOO', count_read=1, count_write=2,
sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; sum_number_of_bytes_read=4, sum_number_of_bytes_write=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
update performance_schema.file_summary_by_event_name update performance_schema.file_summary_by_event_name
set count_read=12; set count_read=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
update performance_schema.file_summary_by_event_name update performance_schema.file_summary_by_event_name
set count_write=12 where event_name like "FOO"; set count_write=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
delete from performance_schema.file_summary_by_event_name delete from performance_schema.file_summary_by_event_name
where count_read=1; where count_read=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
delete from performance_schema.file_summary_by_event_name; delete from performance_schema.file_summary_by_event_name;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
LOCK TABLES performance_schema.file_summary_by_event_name READ; LOCK TABLES performance_schema.file_summary_by_event_name READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.file_summary_by_event_name WRITE; LOCK TABLES performance_schema.file_summary_by_event_name WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_event_name' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where event_name='FOO'; ...@@ -5,23 +5,23 @@ where event_name='FOO';
insert into performance_schema.file_summary_by_instance insert into performance_schema.file_summary_by_instance
set event_name='FOO', count_read=1, count_write=2, set event_name='FOO', count_read=1, count_write=2,
sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; sum_number_of_bytes_read=4, sum_number_of_bytes_write=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
update performance_schema.file_summary_by_instance update performance_schema.file_summary_by_instance
set count_read=12; set count_read=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
update performance_schema.file_summary_by_instance update performance_schema.file_summary_by_instance
set count_write=12 where event_name like "FOO"; set count_write=12 where event_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
delete from performance_schema.file_summary_by_instance delete from performance_schema.file_summary_by_instance
where count_read=1; where count_read=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
delete from performance_schema.file_summary_by_instance; delete from performance_schema.file_summary_by_instance;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
LOCK TABLES performance_schema.file_summary_by_instance READ; LOCK TABLES performance_schema.file_summary_by_instance READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.file_summary_by_instance WRITE; LOCK TABLES performance_schema.file_summary_by_instance WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'file_summary_by_instance' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -4,26 +4,26 @@ select * from performance_schema.host_cache ...@@ -4,26 +4,26 @@ select * from performance_schema.host_cache
where IP='localhost'; where IP='localhost';
insert into performance_schema.host_cache insert into performance_schema.host_cache
set IP='FOO', SUM_BLOCKING_ERRORS=1, COUNT_FCRDNS_ERRORS=2; set IP='FOO', SUM_BLOCKING_ERRORS=1, COUNT_FCRDNS_ERRORS=2;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
update performance_schema.host_cache update performance_schema.host_cache
set COUNT_UNKNOWN_ERRORS=12; set COUNT_UNKNOWN_ERRORS=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
update performance_schema.host_cache update performance_schema.host_cache
set SUM_BLOCKING_ERRORS=12 where IP='127.0.0.1'; set SUM_BLOCKING_ERRORS=12 where IP='127.0.0.1';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
select HOST from performance_schema.host_cache select HOST from performance_schema.host_cache
where IP='::1'; where IP='::1';
HOST HOST
delete from performance_schema.host_cache delete from performance_schema.host_cache
where IP='::1'; where IP='::1';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
delete from performance_schema.host_cache; delete from performance_schema.host_cache;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
LOCK TABLES performance_schema.host_cache READ; LOCK TABLES performance_schema.host_cache READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.host_cache WRITE; LOCK TABLES performance_schema.host_cache WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'host_cache' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where host='FOO'; ...@@ -5,23 +5,23 @@ where host='FOO';
insert into performance_schema.hosts insert into performance_schema.hosts
set host='FOO', set host='FOO',
current_connections=1, total_connections=2; current_connections=1, total_connections=2;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
update performance_schema.hosts update performance_schema.hosts
set current_connections=12; set current_connections=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
update performance_schema.hosts update performance_schema.hosts
set current_connections=12 where host like "FOO"; set current_connections=12 where host like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
delete from performance_schema.hosts delete from performance_schema.hosts
where total_connections=1; where total_connections=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
delete from performance_schema.hosts; delete from performance_schema.hosts;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
LOCK TABLES performance_schema.hosts READ; LOCK TABLES performance_schema.hosts READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.hosts WRITE; LOCK TABLES performance_schema.hosts WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'hosts' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`hosts`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -3,20 +3,20 @@ select * from performance_schema.mutex_instances ...@@ -3,20 +3,20 @@ select * from performance_schema.mutex_instances
where name='FOO'; where name='FOO';
insert into performance_schema.mutex_instances insert into performance_schema.mutex_instances
set name='FOO', object_instance_begin=12; set name='FOO', object_instance_begin=12;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'mutex_instances' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances`
update performance_schema.mutex_instances update performance_schema.mutex_instances
set name='FOO'; set name='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'mutex_instances' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances`
delete from performance_schema.mutex_instances delete from performance_schema.mutex_instances
where name like "wait/%"; where name like "wait/%";
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'mutex_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances`
delete from performance_schema.mutex_instances; delete from performance_schema.mutex_instances;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'mutex_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances`
LOCK TABLES performance_schema.mutex_instances READ; LOCK TABLES performance_schema.mutex_instances READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'mutex_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.mutex_instances WRITE; LOCK TABLES performance_schema.mutex_instances WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'mutex_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -25,23 +25,23 @@ insert into performance_schema.objects_summary_global_by_type ...@@ -25,23 +25,23 @@ insert into performance_schema.objects_summary_global_by_type
set object_type='TABLE', schema_name='FOO', object_name='BAR', set object_type='TABLE', schema_name='FOO', object_name='BAR',
count_star=1, sum_timer_wait=2, min_timer_wait=3, count_star=1, sum_timer_wait=2, min_timer_wait=3,
avg_timer_wait=4, max_timer_wait=5; avg_timer_wait=4, max_timer_wait=5;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
update performance_schema.objects_summary_global_by_type update performance_schema.objects_summary_global_by_type
set count_star=12; set count_star=12;
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
update performance_schema.objects_summary_global_by_type update performance_schema.objects_summary_global_by_type
set count_star=12 where object_name like "FOO"; set count_star=12 where object_name like "FOO";
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
delete from performance_schema.objects_summary_global_by_type delete from performance_schema.objects_summary_global_by_type
where count_star=1; where count_star=1;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
delete from performance_schema.objects_summary_global_by_type; delete from performance_schema.objects_summary_global_by_type;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
LOCK TABLES performance_schema.objects_summary_global_by_type READ; LOCK TABLES performance_schema.objects_summary_global_by_type READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.objects_summary_global_by_type WRITE; LOCK TABLES performance_schema.objects_summary_global_by_type WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'objects_summary_global_by_type' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -12,20 +12,20 @@ CYCLE <frequency> <resolution> <overhead> ...@@ -12,20 +12,20 @@ CYCLE <frequency> <resolution> <overhead>
insert into performance_schema.performance_timers insert into performance_schema.performance_timers
set timer_name='FOO', timer_frequency=1, set timer_name='FOO', timer_frequency=1,
timer_resolution=2, timer_overhead=3; timer_resolution=2, timer_overhead=3;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'performance_timers' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers`
update performance_schema.performance_timers update performance_schema.performance_timers
set timer_frequency=12 where timer_name='CYCLE'; set timer_frequency=12 where timer_name='CYCLE';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'performance_timers' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers`
delete from performance_schema.performance_timers; delete from performance_schema.performance_timers;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'performance_timers' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers`
delete from performance_schema.performance_timers delete from performance_schema.performance_timers
where timer_name='CYCLE'; where timer_name='CYCLE';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'performance_timers' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers`
LOCK TABLES performance_schema.performance_timers READ; LOCK TABLES performance_schema.performance_timers READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'performance_timers' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.performance_timers WRITE; LOCK TABLES performance_schema.performance_timers WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'performance_timers' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -3,20 +3,20 @@ select * from performance_schema.rwlock_instances ...@@ -3,20 +3,20 @@ select * from performance_schema.rwlock_instances
where name='FOO'; where name='FOO';
insert into performance_schema.rwlock_instances insert into performance_schema.rwlock_instances
set name='FOO', object_instance_begin=12; set name='FOO', object_instance_begin=12;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'rwlock_instances' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances`
update performance_schema.rwlock_instances update performance_schema.rwlock_instances
set name='FOO'; set name='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'rwlock_instances' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances`
delete from performance_schema.rwlock_instances delete from performance_schema.rwlock_instances
where name like "wait/%"; where name like "wait/%";
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'rwlock_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances`
delete from performance_schema.rwlock_instances; delete from performance_schema.rwlock_instances;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'rwlock_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances`
LOCK TABLES performance_schema.rwlock_instances READ; LOCK TABLES performance_schema.rwlock_instances READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'rwlock_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.rwlock_instances WRITE; LOCK TABLES performance_schema.rwlock_instances WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'rwlock_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where ATTR_NAME='FOO' OR ATTR_VALUE='BAR'; ...@@ -5,23 +5,23 @@ where ATTR_NAME='FOO' OR ATTR_VALUE='BAR';
INSERT INTO performance_schema.session_account_connect_attrs INSERT INTO performance_schema.session_account_connect_attrs
SET ATTR_NAME='FOO', ATTR_VALUE='BAR', SET ATTR_NAME='FOO', ATTR_VALUE='BAR',
ORDINAL_POSITION=100, PROCESS_ID=102; ORDINAL_POSITION=100, PROCESS_ID=102;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
UPDATE performance_schema.session_account_connect_attrs UPDATE performance_schema.session_account_connect_attrs
SET ATTR_NAME='FOO'; SET ATTR_NAME='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
UPDATE performance_schema.session_account_connect_attrs UPDATE performance_schema.session_account_connect_attrs
SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR'; SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
DELETE FROM performance_schema.session_account_connect_attrs DELETE FROM performance_schema.session_account_connect_attrs
WHERE ATTR_VALUE='BAR'; WHERE ATTR_VALUE='BAR';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
DELETE FROM performance_schema.session_account_connect_attrs; DELETE FROM performance_schema.session_account_connect_attrs;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
LOCK TABLES performance_schema.session_account_connect_attrs READ; LOCK TABLES performance_schema.session_account_connect_attrs READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.session_account_connect_attrs WRITE; LOCK TABLES performance_schema.session_account_connect_attrs WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_account_connect_attrs' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -5,23 +5,23 @@ where ATTR_NAME='FOO' OR ATTR_VALUE='BAR'; ...@@ -5,23 +5,23 @@ where ATTR_NAME='FOO' OR ATTR_VALUE='BAR';
INSERT INTO performance_schema.session_connect_attrs INSERT INTO performance_schema.session_connect_attrs
SET ATTR_NAME='FOO', ATTR_VALUE='BAR', SET ATTR_NAME='FOO', ATTR_VALUE='BAR',
ORDINAL_POSITION=100, PROCESS_ID=102; ORDINAL_POSITION=100, PROCESS_ID=102;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
UPDATE performance_schema.session_connect_attrs UPDATE performance_schema.session_connect_attrs
SET ATTR_NAME='FOO'; SET ATTR_NAME='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
UPDATE performance_schema.session_connect_attrs UPDATE performance_schema.session_connect_attrs
SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR'; SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
DELETE FROM performance_schema.session_connect_attrs DELETE FROM performance_schema.session_connect_attrs
WHERE ATTR_VALUE='BAR'; WHERE ATTR_VALUE='BAR';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
DELETE FROM performance_schema.session_connect_attrs; DELETE FROM performance_schema.session_connect_attrs;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
LOCK TABLES performance_schema.session_connect_attrs READ; LOCK TABLES performance_schema.session_connect_attrs READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.session_connect_attrs WRITE; LOCK TABLES performance_schema.session_connect_attrs WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_connect_attrs' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
...@@ -36,17 +36,17 @@ where enabled='NO'; ...@@ -36,17 +36,17 @@ where enabled='NO';
NAME ENABLED NAME ENABLED
insert into performance_schema.setup_consumers insert into performance_schema.setup_consumers
set name='FOO', enabled='YES'; set name='FOO', enabled='YES';
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_consumers' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers`
update performance_schema.setup_consumers update performance_schema.setup_consumers
set name='FOO'; set name='FOO';
ERROR HY000: Invalid performance_schema usage ERROR HY000: Invalid performance_schema usage
update performance_schema.setup_consumers update performance_schema.setup_consumers
set enabled='YES'; set enabled='YES';
delete from performance_schema.setup_consumers; delete from performance_schema.setup_consumers;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_consumers' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers`
delete from performance_schema.setup_consumers delete from performance_schema.setup_consumers
where name='events_waits_current'; where name='events_waits_current';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_consumers' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers`
LOCK TABLES performance_schema.setup_consumers READ; LOCK TABLES performance_schema.setup_consumers READ;
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.setup_consumers WRITE; LOCK TABLES performance_schema.setup_consumers WRITE;
......
...@@ -54,7 +54,7 @@ select * from performance_schema.setup_instruments ...@@ -54,7 +54,7 @@ select * from performance_schema.setup_instruments
where enabled='YES'; where enabled='YES';
insert into performance_schema.setup_instruments insert into performance_schema.setup_instruments
set name='FOO', enabled='YES', timed='YES'; set name='FOO', enabled='YES', timed='YES';
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_instruments' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments`
update performance_schema.setup_instruments update performance_schema.setup_instruments
set name='FOO'; set name='FOO';
ERROR HY000: Invalid performance_schema usage ERROR HY000: Invalid performance_schema usage
...@@ -66,10 +66,10 @@ select * from performance_schema.setup_instruments; ...@@ -66,10 +66,10 @@ select * from performance_schema.setup_instruments;
update performance_schema.setup_instruments update performance_schema.setup_instruments
set enabled='YES', timed='YES'; set enabled='YES', timed='YES';
delete from performance_schema.setup_instruments; delete from performance_schema.setup_instruments;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments`
delete from performance_schema.setup_instruments delete from performance_schema.setup_instruments
where name like 'Wait/Synch/%'; where name like 'Wait/Synch/%';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_instruments' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments`
LOCK TABLES performance_schema.setup_instruments READ; LOCK TABLES performance_schema.setup_instruments READ;
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.setup_instruments WRITE; LOCK TABLES performance_schema.setup_instruments WRITE;
......
...@@ -22,7 +22,7 @@ NAME TIMER_NAME ...@@ -22,7 +22,7 @@ NAME TIMER_NAME
wait CYCLE wait CYCLE
insert into performance_schema.setup_timers insert into performance_schema.setup_timers
set name='FOO', timer_name='CYCLE'; set name='FOO', timer_name='CYCLE';
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'setup_timers' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_timers`
update performance_schema.setup_timers update performance_schema.setup_timers
set name='FOO'; set name='FOO';
ERROR HY000: Invalid performance_schema usage ERROR HY000: Invalid performance_schema usage
...@@ -37,10 +37,10 @@ statement MILLISECOND ...@@ -37,10 +37,10 @@ statement MILLISECOND
update performance_schema.setup_timers update performance_schema.setup_timers
set timer_name='CYCLE'; set timer_name='CYCLE';
delete from performance_schema.setup_timers; delete from performance_schema.setup_timers;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_timers' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_timers`
delete from performance_schema.setup_timers delete from performance_schema.setup_timers
where name='Wait'; where name='Wait';
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'setup_timers' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_timers`
LOCK TABLES performance_schema.setup_timers READ; LOCK TABLES performance_schema.setup_timers READ;
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.setup_timers WRITE; LOCK TABLES performance_schema.setup_timers WRITE;
......
...@@ -3,20 +3,20 @@ select * from performance_schema.socket_instances ...@@ -3,20 +3,20 @@ select * from performance_schema.socket_instances
where ip='FOO'; where ip='FOO';
insert into performance_schema.socket_instances insert into performance_schema.socket_instances
set ip='FOO', event_name='BAR', port=12; set ip='FOO', event_name='BAR', port=12;
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'socket_instances' ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances`
update performance_schema.socket_instances update performance_schema.socket_instances
set ip='FOO'; set ip='FOO';
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'socket_instances' ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances`
delete from performance_schema.socket_instances delete from performance_schema.socket_instances
where event_name like "wait/%"; where event_name like "wait/%";
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'socket_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances`
delete from performance_schema.socket_instances; delete from performance_schema.socket_instances;
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'socket_instances' ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances`
LOCK TABLES performance_schema.socket_instances READ; LOCK TABLES performance_schema.socket_instances READ;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'socket_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances`
UNLOCK TABLES; UNLOCK TABLES;
LOCK TABLES performance_schema.socket_instances WRITE; LOCK TABLES performance_schema.socket_instances WRITE;
ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'socket_instances' ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances`
UNLOCK TABLES; UNLOCK TABLES;
# #
# MDEV-25325 column_comment for performance_schema tables # MDEV-25325 column_comment for performance_schema tables
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment