is_basics_mixed.result

来自「这个文件是windows mysql源码」· RESULT 代码 · 共 603 行 · 第 1/3 页

RESULT
603
字号
GRANT EXECUTE ON information_schema.*TO 'testuser1'@'localhost';ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'GRANT INDEX ON information_schema.*TO 'testuser1'@'localhost';ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'GRANT INSERT ON information_schema.*TO 'testuser1'@'localhost';ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'GRANT LOCK TABLES ON information_schema.*TO 'testuser1'@'localhost';ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'GRANT UPDATE ON information_schema.*TO 'testuser1'@'localhost';ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'SELECT 'empty result set was expected' AS my_colFROM information_schema.schema_privilegesWHERE table_schema = 'information_schema';my_colSELECT 'empty result set was expected' AS my_colFROM information_schema.table_privilegesWHERE table_schema = 'information_schema';my_colSELECT 'empty result set was expected' AS my_colFROM information_schema.column_privilegesWHERE table_schema = 'information_schema';my_colDROP USER 'testuser1'@'localhost';########################################################################## Testcase 3.2.1.16#########################################################################SELECT DISTINCT table_schema FROM information_schema.columnsWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT table_schema FROM information_schema.column_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT constraint_schema,table_schemaFROM information_schema.key_column_usageWHERE constraint_schema LIKE 'db_data%' OR table_schema LIKE 'db_data%';constraint_schema	table_schemaSELECT DISTINCT routine_schema FROM information_schema.routinesWHERE routine_schema LIKE 'db_data%';routine_schemaSELECT DISTINCT schema_name FROM information_schema.schemataWHERE schema_name LIKE 'db_data%';schema_nameSELECT DISTINCT table_schema FROM information_schema.schema_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT table_schema,index_schema FROM information_schema.statisticsWHERE table_schema LIKE 'db_data%' OR index_schema LIKE 'db_data%';table_schema	index_schemaSELECT DISTINCT table_schema FROM information_schema.tablesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT constraint_schema,table_schemaFROM information_schema.table_constraintsWHERE constraint_schema LIKE 'db_data%' OR table_schema LIKE 'db_data%';constraint_schema	table_schemaSELECT DISTINCT table_schema FROM information_schema.table_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT trigger_schema,event_object_schemaFROM information_schema.triggersWHERE trigger_schema LIKE 'db_data%' OR event_object_schema LIKE 'db_data%';trigger_schema	event_object_schemaSELECT DISTINCT table_schema FROM information_schema.viewsWHERE table_schema LIKE 'db_data%';table_schemaDROP DATABASE IF EXISTS db_datadict;CREATE DATABASE db_datadict;CREATE TABLE db_datadict.t1 (f1 BIGINT, f2 BIGINT NOT NULL, f3 BIGINT,PRIMARY KEY(f1))ENGINE = <some_engine>;CREATE UNIQUE INDEX UIDX ON db_datadict.t1(f3);CREATE PROCEDURE db_datadict.sproc1()      SELECT 'db_datadict';CREATE FUNCTION db_datadict.func1() RETURNS INT RETURN 0;CREATE TRIGGER db_datadict.trig1 BEFORE INSERT ON db_datadict.t1FOR EACH ROW SET @aux = 1;CREATE VIEW db_datadict.v1 AS SELECT * FROM db_datadict.t1;CREATE VIEW db_datadict.v2 AS SELECT * FROM information_schema.tables;SELECT DISTINCT table_schema FROM information_schema.columnsWHERE table_schema LIKE 'db_data%';table_schemadb_datadictSELECT DISTINCT table_schema FROM information_schema.column_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT constraint_schema,table_schemaFROM information_schema.key_column_usageWHERE constraint_schema LIKE 'db_data%' OR table_schema LIKE 'db_data%';constraint_schema	table_schemadb_datadict	db_datadictSELECT DISTINCT routine_schema FROM information_schema.routinesWHERE routine_schema LIKE 'db_data%';routine_schemadb_datadictSELECT DISTINCT schema_name FROM information_schema.schemataWHERE schema_name LIKE 'db_data%';schema_namedb_datadictSELECT DISTINCT table_schema FROM information_schema.schema_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT table_schema,index_schema FROM information_schema.statisticsWHERE table_schema LIKE 'db_data%' OR index_schema LIKE 'db_data%';table_schema	index_schemadb_datadict	db_datadictSELECT DISTINCT table_schema FROM information_schema.tablesWHERE table_schema LIKE 'db_data%';table_schemadb_datadictSELECT DISTINCT constraint_schema,table_schemaFROM information_schema.table_constraintsWHERE constraint_schema LIKE 'db_data%' OR table_schema LIKE 'db_data%';constraint_schema	table_schemadb_datadict	db_datadictSELECT DISTINCT table_schema FROM information_schema.table_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT trigger_schema,event_object_schemaFROM information_schema.triggersWHERE trigger_schema LIKE 'db_data%' OR event_object_schema LIKE 'db_data%';trigger_schema	event_object_schemadb_datadict	db_datadictSELECT DISTINCT table_schema FROM information_schema.viewsWHERE table_schema LIKE 'db_data%';table_schemadb_datadictDROP   USER 'testuser1'@'localhost';CREATE USER 'testuser1'@'localhost';GRANT ALL ON test.* TO 'testuser1'@'localhost';# Establish connection testuser1 (user=testuser1)SELECT DISTINCT table_schema FROM information_schema.columnsWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT table_schema FROM information_schema.column_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT constraint_schema,table_schemaFROM information_schema.key_column_usageWHERE constraint_schema LIKE 'db_data%' OR table_schema LIKE 'db_data%';constraint_schema	table_schemaSELECT DISTINCT routine_schema FROM information_schema.routinesWHERE routine_schema LIKE 'db_data%';routine_schemaSELECT DISTINCT schema_name FROM information_schema.schemataWHERE schema_name LIKE 'db_data%';schema_nameSELECT DISTINCT table_schema FROM information_schema.schema_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT table_schema,index_schema FROM information_schema.statisticsWHERE table_schema LIKE 'db_data%' OR index_schema LIKE 'db_data%';table_schema	index_schemaSELECT DISTINCT table_schema FROM information_schema.tablesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT constraint_schema,table_schemaFROM information_schema.table_constraintsWHERE constraint_schema LIKE 'db_data%' OR table_schema LIKE 'db_data%';constraint_schema	table_schemaSELECT DISTINCT table_schema FROM information_schema.table_privilegesWHERE table_schema LIKE 'db_data%';table_schemaSELECT DISTINCT trigger_schema,event_object_schemaFROM information_schema.triggersWHERE trigger_schema LIKE 'db_data%' OR event_object_schema LIKE 'db_data%';trigger_schema	event_object_schemaSELECT DISTINCT table_schema FROM information_schema.viewsWHERE table_schema LIKE 'db_data%';table_schema# Switch to connection default and close connections testuser1 and testuser2DROP   USER 'testuser1'@'localhost';DROP DATABASE db_datadict;######################################################################### Testcases 3.2.1.3-3.2.1.5 + 3.2.1.8-3.2.1.12: INSERT/UPDATE/DELETE and#           DDL on INFORMATION_SCHEMA tables are not supported########################################################################DROP PROCEDURE IF EXISTS test.p1;CREATE PROCEDURE test.p1()INSERT INTO information_schema.tablesSELECT * FROM information_schema.tables LIMIT 1;CALL test.p1();ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'DROP PROCEDURE test.p1;CREATE PROCEDURE test.p1()UPDATE information_schema.columns SET table_schema = 'garbage';CALL test.p1();ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'DROP PROCEDURE test.p1;CREATE PROCEDURE test.p1()DELETE FROM information_schema.schemata;CALL test.p1();ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'DROP PROCEDURE test.p1;########################################################################## Testcase 3.2.17.1+3.2.17.2: To be implemented outside of this script#########################################################################

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?