91
88
where table_schema="mysql" and table_name="user";
94
# Bug #7981:SHOW GLOBAL STATUS crashes server
96
# We don't actually care about the value, just that it doesn't crash.
98
show global status like "Threads_running";
101
91
# Bug #7215 information_schema: columns are longtext instead of varchar
102
92
# Bug #7217 information_schema: columns are varbinary() instead of timestamp
398
388
select * from information_schema.tables where table_name = NULL;
399
389
select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_SCHEMA` = NULL;
400
390
select * from `information_schema`.`TABLE_CONSTRAINTS` where `TABLE_NAME` = NULL;
393
--echo # Test that the query is visible to self and others.
396
SELECT info FROM information_schema.processlist WHERE id = CONNECTION_ID();
399
# test that SHOW PROCESSLIST works correctly
401
--replace_column 1 # 2 # 3 # 6 # 7 #
405
# do a query on the PROCESSLIST table in I_S to ensure it works correctly
407
SELECT info, command, db
408
FROM information_schema.processlist
409
WHERE id = CONNECTION_ID();
412
# do a query on the CHARACTER_SET table in I_S
415
FROM information_schema.character_sets
416
ORDER BY character_set_name;
419
# perform a query on the COLLATIONS table
422
FROM information_schema.collations
423
ORDER BY collation_name;
426
# perform a query on COLLATION_CHARACTER_SET_APPLICABILITY
429
FROM information_schema.collation_character_set_applicability
430
ORDER BY collation_name;
433
# perform a query on COLUMNS
435
SELECT table_name, column_name
436
FROM information_schema.columns
440
# perform a query on KEY_COLUMN_USAGE
443
FROM information_schema.key_column_usage;
446
# perform a query on REFERENTIAL_CONSTRAINTS
449
FROM information_schema.referential_constraints;
452
# query the SCHEMATA table
454
SELECT catalog_name, schema_name
455
FROM information_schema.schemata
456
ORDER BY schema_name;
459
# Query the STATUS and VARIABLES related
460
# I_S related tables.
462
--replace_column 1 # 2 #
464
FROM information_schema.session_status
465
ORDER BY variable_name;
467
--replace_column 1 # 2 #
470
#--replace_column 1 # 2 #
472
#FROM information_schema.session_variables
473
#ORDER BY variable_name;
475
#--replace_column 1 # 2 #
478
--replace_column 1 # 2 #
480
FROM information_schema.global_status
481
ORDER BY variable_name;
483
#--replace_column 1 # 2 #
485
#FROM information_schema.global_variables
486
#ORDER BY variable_name;
489
# query TABLE_CONSTRAINTS table
492
FROM information_schema.table_constraints;
497
SELECT table_schema, table_name
498
FROM information_schema.tables
502
# do a query on the PLUGINS table in I_S to ensure it works correctly
503
# how do we test for this if the contents of this table can change
504
# depend on what plugins are configured for use?