Commit aa2ff620 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-9077 Use sys schema in bootstrapping, incl. mtr

parent 9186ff88
...@@ -34,9 +34,11 @@ FOREACH(FILENAME mysql_system_tables.sql mysql_system_tables_data.sql mysql_perf ...@@ -34,9 +34,11 @@ FOREACH(FILENAME mysql_system_tables.sql mysql_system_tables_data.sql mysql_perf
ENDIF() ENDIF()
ENDFOREACH() ENDFOREACH()
ENDFOREACH() ENDFOREACH()
FILE(READ ${TOP_SRCDIR}/scripts/fill_help_tables.sql CONTENTS)
FILE(APPEND bootstrap.sql "${CONTENTS}")
FOREACH(FILENAME ${TOP_SRCDIR}/scripts/fill_help_tables.sql ${TOP_SRCDIR}/scripts/mysql_sys_schema.sql)
FILE(READ ${FILENAME} CONTENTS)
FILE(APPEND bootstrap.sql "${CONTENTS}")
ENDFOREACH()
MAKE_DIRECTORY(mysql) MAKE_DIRECTORY(mysql)
......
...@@ -30,6 +30,7 @@ usr/share/mysql/japanese ...@@ -30,6 +30,7 @@ usr/share/mysql/japanese
usr/share/mysql/korean usr/share/mysql/korean
usr/share/mysql/maria_add_gis_sp_bootstrap.sql usr/share/mysql/maria_add_gis_sp_bootstrap.sql
usr/share/mysql/mysql_performance_tables.sql usr/share/mysql/mysql_performance_tables.sql
usr/share/mysql/mysql_sys_schema.sql
usr/share/mysql/mysql_system_tables.sql usr/share/mysql/mysql_system_tables.sql
usr/share/mysql/mysql_system_tables_data.sql usr/share/mysql/mysql_system_tables_data.sql
usr/share/mysql/mysql_test_data_timezone.sql usr/share/mysql/mysql_test_data_timezone.sql
......
...@@ -71,9 +71,9 @@ BEGIN ...@@ -71,9 +71,9 @@ BEGIN
SELECT * FROM INFORMATION_SCHEMA.EVENTS; SELECT * FROM INFORMATION_SCHEMA.EVENTS;
-- Dump all triggers except mtr internals, there should be none -- Dump all triggers except mtr internals, there should be none
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
WHERE TRIGGER_NAME NOT IN ('gs_insert', 'ts_insert'); WHERE TRIGGER_NAME NOT IN ('gs_insert', 'ts_insert') AND TRIGGER_SCHEMA != 'sys';
-- Dump all created procedures, there should be none -- Dump all created procedures, there should be none
SELECT * FROM INFORMATION_SCHEMA.ROUTINES; SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA != 'sys';
SHOW STATUS LIKE 'slave_open_temp_tables'; SHOW STATUS LIKE 'slave_open_temp_tables';
...@@ -87,7 +87,7 @@ BEGIN ...@@ -87,7 +87,7 @@ BEGIN
mysql.help_keyword, mysql.help_keyword,
mysql.help_relation, mysql.help_relation,
mysql.plugin, mysql.plugin,
mysql.proc, -- mysql.proc,
mysql.procs_priv, mysql.procs_priv,
mysql.roles_mapping, mysql.roles_mapping,
mysql.tables_priv, mysql.tables_priv,
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
# Can't run test of external client with embedded server # Can't run test of external client with embedded server
-- source include/not_embedded.inc -- source include/not_embedded.inc
# diff in the output, if perfschema is not compiled in
# (sys schema views are missing)
-- source include/have_perfschema.inc
# #
# Hack: # Hack:
# #
......
...@@ -4,6 +4,7 @@ information_schema ...@@ -4,6 +4,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
show tables in mysql; show tables in mysql;
Tables_in_mysql Tables_in_mysql
......
...@@ -65,6 +65,7 @@ information_schema ...@@ -65,6 +65,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
SET ROLE NONE; SET ROLE NONE;
connect user_b, localhost, root,,; connect user_b, localhost, root,,;
......
This diff is collapsed.
...@@ -52,6 +52,7 @@ mtr ...@@ -52,6 +52,7 @@ mtr
mysql mysql
mysqltest mysqltest
performance_schema performance_schema
sys
test test
flush tables with read lock; flush tables with read lock;
drop database mysqltest; drop database mysqltest;
...@@ -64,6 +65,7 @@ information_schema ...@@ -64,6 +65,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
drop database mysqltest; drop database mysqltest;
ERROR HY000: Can't drop database 'mysqltest'; database doesn't exist ERROR HY000: Can't drop database 'mysqltest'; database doesn't exist
......
This diff is collapsed.
...@@ -187,19 +187,19 @@ drop view v1; ...@@ -187,19 +187,19 @@ drop view v1;
connect (user1,localhost,mysqltest_1,,); connect (user1,localhost,mysqltest_1,,);
connection user1; connection user1;
select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES; select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES WHERE ROUTINE_SCHEMA <> 'sys';
--error ER_SP_DOES_NOT_EXIST --error ER_SP_DOES_NOT_EXIST
show create function sub1; show create function sub1;
connection user3; connection user3;
select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES; select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES WHERE ROUTINE_SCHEMA <> 'sys';
connection default; connection default;
grant all privileges on test.* to mysqltest_1@localhost; grant all privileges on test.* to mysqltest_1@localhost;
connect (user2,localhost,mysqltest_1,,); connect (user2,localhost,mysqltest_1,,);
connection user2; connection user2;
select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES; select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES WHERE ROUTINE_SCHEMA <> 'sys';
create function sub2(i int) returns int create function sub2(i int) returns int
return i+1; return i+1;
select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES; select ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES WHERE ROUTINE_SCHEMA <> 'sys';
show create procedure sel2; show create procedure sel2;
show create function sub1; show create function sub1;
show create function sub2; show create function sub2;
...@@ -233,7 +233,7 @@ where COLLATION_NAME like "latin1%"; ...@@ -233,7 +233,7 @@ where COLLATION_NAME like "latin1%";
select * from v4; select * from v4;
show keys from v4; show keys from v4;
--sorted_result --sorted_result
select * from information_schema.views where TABLE_NAME like "v%"; select * from information_schema.views where TABLE_NAME like "v%" AND TABLE_SCHEMA <> 'sys';
drop view v0, v1, v2, v3, v4; drop view v0, v1, v2, v3, v4;
# #
...@@ -285,7 +285,7 @@ create view v1 (c) as select a from t1 with check option; ...@@ -285,7 +285,7 @@ create view v1 (c) as select a from t1 with check option;
create view v2 (c) as select a from t1 WITH LOCAL CHECK OPTION; create view v2 (c) as select a from t1 WITH LOCAL CHECK OPTION;
create view v3 (c) as select a from t1 WITH CASCADED CHECK OPTION; create view v3 (c) as select a from t1 WITH CASCADED CHECK OPTION;
--sorted_result --sorted_result
select * from information_schema.views; select * from information_schema.views where table_schema <> 'sys';
grant select (a) on test.t1 to joe@localhost with grant option; grant select (a) on test.t1 to joe@localhost with grant option;
select * from INFORMATION_SCHEMA.COLUMN_PRIVILEGES; select * from INFORMATION_SCHEMA.COLUMN_PRIVILEGES;
select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES; select * from INFORMATION_SCHEMA.TABLE_PRIVILEGES;
...@@ -671,7 +671,7 @@ drop procedure if exists p2; ...@@ -671,7 +671,7 @@ drop procedure if exists p2;
create procedure p1 () modifies sql data set @a = 5; create procedure p1 () modifies sql data set @a = 5;
create procedure p2 () set @a = 5; create procedure p2 () set @a = 5;
select sql_data_access from information_schema.routines select sql_data_access from information_schema.routines
where specific_name like 'p%'; where specific_name like 'p%' and routine_schema = 'test';
drop procedure p1; drop procedure p1;
drop procedure p2; drop procedure p2;
...@@ -835,7 +835,7 @@ CREATE FUNCTION func2() RETURNS BIGINT RETURN 1; ...@@ -835,7 +835,7 @@ CREATE FUNCTION func2() RETURNS BIGINT RETURN 1;
delimiter //; delimiter //;
CREATE FUNCTION func1() RETURNS BIGINT CREATE FUNCTION func1() RETURNS BIGINT
BEGIN BEGIN
RETURN ( SELECT COUNT(*) FROM INFORMATION_SCHEMA.VIEWS); RETURN ( SELECT COUNT(*) FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_SCHEMA <> 'sys');
END// END//
delimiter ;// delimiter ;//
......
select count(*) from t4; select count(*) from t4;
count(*) count(*)
0 193
...@@ -46,6 +46,106 @@ mysql.transaction_registry OK ...@@ -46,6 +46,106 @@ mysql.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -55,6 +155,8 @@ mtr ...@@ -55,6 +155,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
......
...@@ -137,6 +137,106 @@ error : Corrupt ...@@ -137,6 +137,106 @@ error : Corrupt
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -147,6 +247,8 @@ mtr ...@@ -147,6 +247,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
......
...@@ -6,7 +6,7 @@ Setting root password ...@@ -6,7 +6,7 @@ Setting root password
Creation of the database was successful Creation of the database was successful
# Kill the server # Kill the server
# restart: --datadir=MYSQLTEST_VARDIR/tmp/ddir --loose-innodb # restart: --datadir=MYSQLTEST_VARDIR/tmp/ddir --loose-innodb
connect root,localhost,root,foo; connect root,localhost,root,foo,mysql;
SELECT @@datadir; SELECT @@datadir;
@@datadir @@datadir
DATADIR/ DATADIR/
......
...@@ -9,7 +9,7 @@ exec $MYSQL_INSTALL_DB_EXE --datadir=$ddir --password=foo -R; ...@@ -9,7 +9,7 @@ exec $MYSQL_INSTALL_DB_EXE --datadir=$ddir --password=foo -R;
let $restart_parameters=--datadir=$ddir --loose-innodb; let $restart_parameters=--datadir=$ddir --loose-innodb;
--source include/start_mysqld.inc --source include/start_mysqld.inc
connect root,localhost,root,foo; connect (root,localhost,root,foo,mysql);
# Smoke test - check that we're actually using datadir # Smoke test - check that we're actually using datadir
# we've created (i.e restart_parameters worked) # we've created (i.e restart_parameters worked)
--replace_result $ddir DATADIR --replace_result $ddir DATADIR
......
...@@ -57,6 +57,106 @@ Phase 2/7: Installing used storage engines... Skipped ...@@ -57,6 +57,106 @@ Phase 2/7: Installing used storage engines... Skipped
installing plugin for MYSQL_JSON data type installing plugin for MYSQL_JSON data type
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -66,6 +166,8 @@ mtr ...@@ -66,6 +166,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
test.mysql_json_test Needs upgrade test.mysql_json_test Needs upgrade
test.mysql_json_test_big Needs upgrade test.mysql_json_test_big Needs upgrade
......
...@@ -57,6 +57,106 @@ error : Corrupt ...@@ -57,6 +57,106 @@ error : Corrupt
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -66,6 +166,8 @@ mtr ...@@ -66,6 +166,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
test.mysql_json_test Needs upgrade test.mysql_json_test Needs upgrade
test.mysql_json_test_big Needs upgrade test.mysql_json_test_big Needs upgrade
......
...@@ -50,6 +50,106 @@ mysql.transaction_registry OK ...@@ -50,6 +50,106 @@ mysql.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -59,6 +159,8 @@ mtr ...@@ -59,6 +159,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
......
...@@ -50,6 +50,106 @@ error : Corrupt ...@@ -50,6 +50,106 @@ error : Corrupt
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -59,6 +159,8 @@ mtr ...@@ -59,6 +159,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
......
This diff is collapsed.
...@@ -368,6 +368,9 @@ rename table mysql.global_priv_bak to mysql.global_priv; ...@@ -368,6 +368,9 @@ rename table mysql.global_priv_bak to mysql.global_priv;
# The warning appears during mysql_upgrade, before the schema becomes consistent # The warning appears during mysql_upgrade, before the schema becomes consistent
call mtr.add_suppression("innodb_table_stats has length mismatch in the column name table_name"); call mtr.add_suppression("innodb_table_stats has length mismatch in the column name table_name");
# This comes from opening 10.6 sys.host_summary view that uses sys.format_time function,
# on still inconsistent mysql.proc, in older versions
call mtr.add_suppression("Column count of mysql.proc is wrong. Expected 21, found 20.");
--let $old_version= 5.5 --let $old_version= 5.5
--source include/load_dump_and_upgrade.inc --source include/load_dump_and_upgrade.inc
......
...@@ -44,6 +44,106 @@ mysql.transaction_registry OK ...@@ -44,6 +44,106 @@ mysql.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -53,6 +153,8 @@ mtr ...@@ -53,6 +153,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
test.mysql_json_test Needs upgrade test.mysql_json_test Needs upgrade
test.mysql_json_test_big Needs upgrade test.mysql_json_test_big Needs upgrade
......
...@@ -35,6 +35,106 @@ mysql.transaction_registry OK ...@@ -35,6 +35,106 @@ mysql.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -44,6 +144,8 @@ mtr ...@@ -44,6 +144,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
This diff is collapsed.
...@@ -34,6 +34,7 @@ mysql.time_zone_name OK ...@@ -34,6 +34,7 @@ mysql.time_zone_name OK
mysql.time_zone_transition OK mysql.time_zone_transition OK
mysql.time_zone_transition_type OK mysql.time_zone_transition_type OK
mysql.transaction_registry OK mysql.transaction_registry OK
sys.sys_config OK
mtr.global_suppressions Table is already up to date mtr.global_suppressions Table is already up to date
mtr.test_suppressions Table is already up to date mtr.test_suppressions Table is already up to date
mysql.column_stats OK mysql.column_stats OK
...@@ -70,6 +71,7 @@ mysql.time_zone_transition_type OK ...@@ -70,6 +71,7 @@ mysql.time_zone_transition_type OK
mysql.transaction_registry mysql.transaction_registry
note : Table does not support optimize, doing recreate + analyze instead note : Table does not support optimize, doing recreate + analyze instead
status : OK status : OK
sys.sys_config OK
mysql.column_stats OK mysql.column_stats OK
mysql.columns_priv OK mysql.columns_priv OK
mysql.db OK mysql.db OK
...@@ -465,6 +467,7 @@ warning : Table is marked as crashed ...@@ -465,6 +467,7 @@ warning : Table is marked as crashed
warning : Size of datafile is: 4 Should be: 0 warning : Size of datafile is: 4 Should be: 0
error : got error: 0 when reading datafile at record: 0 error : got error: 0 when reading datafile at record: 0
error : Corrupt error : Corrupt
sys.sys_config Table is already up to date
test.t2 Table is already up to date test.t2 Table is already up to date
Repairing tables Repairing tables
......
...@@ -230,6 +230,7 @@ information_schema ...@@ -230,6 +230,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
# 'bug58090' database should be present. # 'bug58090' database should be present.
SHOW DATABASES; SHOW DATABASES;
...@@ -239,6 +240,7 @@ information_schema ...@@ -239,6 +240,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
DROP DATABASE bug58090; DROP DATABASE bug58090;
# #
......
...@@ -264,6 +264,7 @@ information_schema ...@@ -264,6 +264,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
prepare stmt4 from ' show tables from test like ''t2%'' '; prepare stmt4 from ' show tables from test like ''t2%'' ';
execute stmt4; execute stmt4;
......
...@@ -769,7 +769,7 @@ deallocate prepare stmt; ...@@ -769,7 +769,7 @@ deallocate prepare stmt;
# #
# Test 3: View referencing an Information schema table # Test 3: View referencing an Information schema table
# #
create view t1 as select table_name from information_schema.views order by table_name; create view t1 as select table_name from information_schema.views where table_schema <> 'sys' order by table_name;
prepare stmt from "select * from t1"; prepare stmt from "select * from t1";
execute stmt; execute stmt;
table_name table_name
......
...@@ -699,7 +699,7 @@ deallocate prepare stmt; ...@@ -699,7 +699,7 @@ deallocate prepare stmt;
--echo # --echo #
--echo # Test 3: View referencing an Information schema table --echo # Test 3: View referencing an Information schema table
--echo # --echo #
create view t1 as select table_name from information_schema.views order by table_name; create view t1 as select table_name from information_schema.views where table_schema <> 'sys' order by table_name;
prepare stmt from "select * from t1"; prepare stmt from "select * from t1";
execute stmt; execute stmt;
......
...@@ -10,6 +10,7 @@ information_schema ...@@ -10,6 +10,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
drop schema foo; drop schema foo;
# #
......
...@@ -149,6 +149,7 @@ information_schema ...@@ -149,6 +149,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
show databases like "test%"; show databases like "test%";
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
......
create function f() returns int return 1; create function f() returns int return 1;
show function status; show function status where db='test';
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
T f T T T T T T T T T T f T T T T T T T T T
set sql_mode = 'PAD_CHAR_TO_FULL_LENGTH'; set sql_mode = 'PAD_CHAR_TO_FULL_LENGTH';
show function status; show function status where db='test';
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
T f T T T T T T T T T T f T T T T T T T T T
drop function f; drop function f;
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
create function f() returns int return 1; create function f() returns int return 1;
--replace_column 1 T 3 T 4 T 5 T 6 T 7 T 8 T 9 T 10 T 11 T --replace_column 1 T 3 T 4 T 5 T 6 T 7 T 8 T 9 T 10 T 11 T
show function status; show function status where db='test';
set sql_mode = 'PAD_CHAR_TO_FULL_LENGTH'; set sql_mode = 'PAD_CHAR_TO_FULL_LENGTH';
--replace_column 1 T 3 T 4 T 5 T 6 T 7 T 8 T 9 T 10 T 11 T --replace_column 1 T 3 T 4 T 5 T 6 T 7 T 8 T 9 T 10 T 11 T
show function status; show function status where db='test';
drop function f; drop function f;
select @@sql_mode; select @@sql_mode;
......
...@@ -1227,12 +1227,12 @@ n f ...@@ -1227,12 +1227,12 @@ n f
19 121645100408832000 19 121645100408832000
20 2432902008176640000 20 2432902008176640000
drop table t3| drop table t3|
show function status like '%f%'| show function status where name like '%f%' and Db <> 'sys'|
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test fac FUNCTION root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci test fac FUNCTION root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
drop procedure ifac| drop procedure ifac|
drop function fac| drop function fac|
show function status like '%f%'| show function status where name like '%f%' and Db <> 'sys'|
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
drop table if exists t3| drop table if exists t3|
create table t3 ( create table t3 (
......
...@@ -1456,11 +1456,11 @@ call ifac(20)| ...@@ -1456,11 +1456,11 @@ call ifac(20)|
select * from t3| select * from t3|
drop table t3| drop table t3|
--replace_column 4 'root@localhost' 5 '0000-00-00 00:00:00' 6 '0000-00-00 00:00:00' --replace_column 4 'root@localhost' 5 '0000-00-00 00:00:00' 6 '0000-00-00 00:00:00'
show function status like '%f%'| show function status where name like '%f%' and Db <> 'sys'|
drop procedure ifac| drop procedure ifac|
drop function fac| drop function fac|
--replace_column 4 'root@localhost' 5 '0000-00-00 00:00:00' 6 '0000-00-00 00:00:00' --replace_column 4 'root@localhost' 5 '0000-00-00 00:00:00' 6 '0000-00-00 00:00:00'
show function status like '%f%'| show function status where name like '%f%' and Db <> 'sys'|
# primes # primes
......
CREATE DATABASE test1; CREATE DATABASE test1;
CREATE PROCEDURE test1.sp3() BEGIN END; CREATE PROCEDURE test1.sp3() BEGIN END;
SHOW PROCEDURE STATUS; SHOW PROCEDURE STATUS WHERE Db <> 'sys';
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
mtr add_suppression PROCEDURE root@localhost # # DEFINER utf8 utf8_general_ci latin1_swedish_ci mtr add_suppression PROCEDURE root@localhost # # DEFINER utf8 utf8_general_ci latin1_swedish_ci
mtr check_testcase PROCEDURE root@localhost # # DEFINER utf8 utf8_general_ci latin1_swedish_ci mtr check_testcase PROCEDURE root@localhost # # DEFINER utf8 utf8_general_ci latin1_swedish_ci
......
...@@ -17,7 +17,7 @@ CREATE DATABASE test1; ...@@ -17,7 +17,7 @@ CREATE DATABASE test1;
CREATE PROCEDURE test1.sp3() BEGIN END; CREATE PROCEDURE test1.sp3() BEGIN END;
--replace_column 5 # 6 # --replace_column 5 # 6 #
SHOW PROCEDURE STATUS; SHOW PROCEDURE STATUS WHERE Db <> 'sys';
# Cleanup # Cleanup
DROP PROCEDURE sp2; DROP PROCEDURE sp2;
......
...@@ -136,6 +136,106 @@ error : Corrupt ...@@ -136,6 +136,106 @@ error : Corrupt
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -149,6 +249,8 @@ mysqltest1.save_global_priv OK ...@@ -149,6 +249,8 @@ mysqltest1.save_global_priv OK
mysqltest1.save_proxies_priv OK mysqltest1.save_proxies_priv OK
mysqltest1.save_tables_priv OK mysqltest1.save_tables_priv OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
......
This diff is collapsed.
This diff is collapsed.
...@@ -100,6 +100,106 @@ error : Corrupt ...@@ -100,6 +100,106 @@ error : Corrupt
Phase 2/7: Installing used storage engines... Skipped Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views Phase 3/7: Fixing views
mysql.user OK mysql.user OK
sys.host_summary OK
sys.host_summary_by_file_io OK
sys.host_summary_by_file_io_type OK
sys.host_summary_by_stages OK
sys.host_summary_by_statement_latency OK
sys.host_summary_by_statement_type OK
sys.innodb_buffer_stats_by_schema OK
sys.innodb_buffer_stats_by_table OK
sys.innodb_lock_waits OK
sys.io_by_thread_by_latency OK
sys.io_global_by_file_by_bytes OK
sys.io_global_by_file_by_latency OK
sys.io_global_by_wait_by_bytes OK
sys.io_global_by_wait_by_latency OK
sys.latest_file_io OK
sys.memory_by_host_by_current_bytes OK
sys.memory_by_thread_by_current_bytes OK
sys.memory_by_user_by_current_bytes OK
sys.memory_global_by_current_bytes OK
sys.memory_global_total OK
sys.metrics OK
sys.processlist OK
sys.ps_check_lost_instrumentation OK
sys.schema_auto_increment_columns OK
sys.schema_index_statistics OK
sys.schema_object_overview OK
sys.schema_redundant_indexes OK
sys.schema_table_lock_waits OK
sys.schema_table_statistics OK
sys.schema_table_statistics_with_buffer OK
sys.schema_tables_with_full_table_scans OK
sys.schema_unused_indexes OK
sys.session OK
sys.session_ssl_status OK
sys.statement_analysis OK
sys.statements_with_errors_or_warnings OK
sys.statements_with_full_table_scans OK
sys.statements_with_runtimes_in_95th_percentile OK
sys.statements_with_sorting OK
sys.statements_with_temp_tables OK
sys.user_summary OK
sys.user_summary_by_file_io OK
sys.user_summary_by_file_io_type OK
sys.user_summary_by_stages OK
sys.user_summary_by_statement_latency OK
sys.user_summary_by_statement_type OK
sys.version OK
sys.wait_classes_global_by_avg_latency OK
sys.wait_classes_global_by_latency OK
sys.waits_by_host_by_latency OK
sys.waits_by_user_by_latency OK
sys.waits_global_by_latency OK
sys.x$host_summary OK
sys.x$host_summary_by_file_io OK
sys.x$host_summary_by_file_io_type OK
sys.x$host_summary_by_stages OK
sys.x$host_summary_by_statement_latency OK
sys.x$host_summary_by_statement_type OK
sys.x$innodb_buffer_stats_by_schema OK
sys.x$innodb_buffer_stats_by_table OK
sys.x$innodb_lock_waits OK
sys.x$io_by_thread_by_latency OK
sys.x$io_global_by_file_by_bytes OK
sys.x$io_global_by_file_by_latency OK
sys.x$io_global_by_wait_by_bytes OK
sys.x$io_global_by_wait_by_latency OK
sys.x$latest_file_io OK
sys.x$memory_by_host_by_current_bytes OK
sys.x$memory_by_thread_by_current_bytes OK
sys.x$memory_by_user_by_current_bytes OK
sys.x$memory_global_by_current_bytes OK
sys.x$memory_global_total OK
sys.x$processlist OK
sys.x$ps_digest_95th_percentile_by_avg_us OK
sys.x$ps_digest_avg_latency_distribution OK
sys.x$ps_schema_table_statistics_io OK
sys.x$schema_flattened_keys OK
sys.x$schema_index_statistics OK
sys.x$schema_table_lock_waits OK
sys.x$schema_table_statistics OK
sys.x$schema_table_statistics_with_buffer OK
sys.x$schema_tables_with_full_table_scans OK
sys.x$session OK
sys.x$statement_analysis OK
sys.x$statements_with_errors_or_warnings OK
sys.x$statements_with_full_table_scans OK
sys.x$statements_with_runtimes_in_95th_percentile OK
sys.x$statements_with_sorting OK
sys.x$statements_with_temp_tables OK
sys.x$user_summary OK
sys.x$user_summary_by_file_io OK
sys.x$user_summary_by_file_io_type OK
sys.x$user_summary_by_stages OK
sys.x$user_summary_by_statement_latency OK
sys.x$user_summary_by_statement_type OK
sys.x$wait_classes_global_by_avg_latency OK
sys.x$wait_classes_global_by_latency OK
sys.x$waits_by_host_by_latency OK
sys.x$waits_by_user_by_latency OK
sys.x$waits_global_by_latency OK
Phase 4/7: Running 'mysql_fix_privilege_tables' Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables Phase 6/7: Checking and upgrading tables
...@@ -109,6 +209,8 @@ mtr ...@@ -109,6 +209,8 @@ mtr
mtr.global_suppressions OK mtr.global_suppressions OK
mtr.test_suppressions OK mtr.test_suppressions OK
performance_schema performance_schema
sys
sys.sys_config OK
test test
Phase 7/7: Running 'FLUSH PRIVILEGES' Phase 7/7: Running 'FLUSH PRIVILEGES'
OK OK
......
...@@ -610,7 +610,7 @@ insert into t1 values(5,'Hello, world of views'); ...@@ -610,7 +610,7 @@ insert into t1 values(5,'Hello, world of views');
create view v1 as select * from t1; create view v1 as select * from t1;
create view v2 as select * from v1; create view v2 as select * from v1;
update v2 set col2='Hello, view world'; update v2 set col2='Hello, view world';
select is_updatable from information_schema.views; select is_updatable from information_schema.views where table_schema <> 'sys';
is_updatable is_updatable
YES YES
YES YES
......
...@@ -500,7 +500,7 @@ insert into t1 values(5,'Hello, world of views'); ...@@ -500,7 +500,7 @@ insert into t1 values(5,'Hello, world of views');
create view v1 as select * from t1; create view v1 as select * from t1;
create view v2 as select * from v1; create view v2 as select * from v1;
update v2 set col2='Hello, view world'; update v2 set col2='Hello, view world';
select is_updatable from information_schema.views; select is_updatable from information_schema.views where table_schema <> 'sys';
select * from t1; select * from t1;
drop view v2, v1; drop view v2, v1;
drop table t1; drop table t1;
......
...@@ -1730,8 +1730,15 @@ sub collect_mysqld_features { ...@@ -1730,8 +1730,15 @@ sub collect_mysqld_features {
# Enable or disable ARCHIVE plugin. Possible values are ON, OFF, # Enable or disable ARCHIVE plugin. Possible values are ON, OFF,
# FORCE (don't start if the plugin fails to load), # FORCE (don't start if the plugin fails to load),
# FORCE_PLUS_PERMANENT (like FORCE, but the plugin can not be uninstalled). # FORCE_PLUS_PERMANENT (like FORCE, but the plugin can not be uninstalled).
# For Innodb I_S plugins that are referenced in sys schema
# do not make them optional, to prevent diffs in tests.
push @optional_plugins, $1 push @optional_plugins, $1
if /^ --([-a-z0-9]+)\[=name\] +Enable or disable \w+ plugin. One of: ON, OFF, FORCE/; if /^ --([-a-z0-9]+)\[=name\] +Enable or disable \w+ plugin. One of: ON, OFF, FORCE/
and $1 ne "innodb-metrics"
and $1 ne "innodb-buffer-page"
and $1 ne "innodb-lock-waits"
and $1 ne "innodb-locks"
and $1 ne "innodb-trx";
next; next;
} }
...@@ -3090,6 +3097,9 @@ sub mysql_install_db { ...@@ -3090,6 +3097,9 @@ sub mysql_install_db {
mtr_appendfile_to_file("$sql_dir/fill_help_tables.sql", mtr_appendfile_to_file("$sql_dir/fill_help_tables.sql",
$bootstrap_sql_file); $bootstrap_sql_file);
# Append sys schema
mtr_appendfile_to_file("$gis_sp_path/mysql_sys_schema.sql",
$bootstrap_sql_file);
# Create test database # Create test database
mtr_appendfile_to_file("$sql_dir/mysql_test_db.sql", mtr_appendfile_to_file("$sql_dir/mysql_test_db.sql",
$bootstrap_sql_file); $bootstrap_sql_file);
......
...@@ -292,4 +292,5 @@ information_schema ...@@ -292,4 +292,5 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
...@@ -7,6 +7,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -7,6 +7,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d11 CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER DATABASE d11 CHARACTER SET utf8 COLLATE utf8_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -16,6 +17,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -16,6 +17,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d11; DROP DATABASE d11;
CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin; CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin;
...@@ -26,6 +28,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -26,6 +28,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d11 CHARACTER SET latin2 COLLATE latin2_general_ci; ALTER DATABASE d11 CHARACTER SET latin2 COLLATE latin2_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -35,6 +38,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -35,6 +38,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d11; DROP DATABASE d11;
CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin; CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin;
...@@ -45,6 +49,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -45,6 +49,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d11 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci; ALTER DATABASE d11 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -54,6 +59,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -54,6 +59,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d11; DROP DATABASE d11;
CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin; CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin;
...@@ -64,6 +70,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -64,6 +70,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d11 CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER SCHEMA d11 CHARACTER SET utf8 COLLATE utf8_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -73,6 +80,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -73,6 +80,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d11; DROP DATABASE d11;
CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin; CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin;
...@@ -83,6 +91,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -83,6 +91,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d11 CHARACTER SET latin2 COLLATE latin2_general_ci; ALTER SCHEMA d11 CHARACTER SET latin2 COLLATE latin2_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -92,6 +101,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -92,6 +101,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d11; DROP DATABASE d11;
CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin; CREATE DATABASE d11 DEFAULT CHARACTER SET ascii DEFAULT COLLATE ascii_bin;
...@@ -102,6 +112,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -102,6 +112,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d11 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci; ALTER SCHEMA d11 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -111,5 +122,6 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -111,5 +122,6 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d11; DROP DATABASE d11;
...@@ -331,6 +331,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -331,6 +331,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d9 COLLATE ascii_bin; ALTER DATABASE d9 COLLATE ascii_bin;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -340,6 +341,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -340,6 +341,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -350,6 +352,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -350,6 +352,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d9 DEFAULT COLLATE ascii_bin; ALTER DATABASE d9 DEFAULT COLLATE ascii_bin;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -359,6 +362,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -359,6 +362,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -369,6 +373,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -369,6 +373,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d9 COLLATE ascii_general_ci; ALTER DATABASE d9 COLLATE ascii_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -378,6 +383,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -378,6 +383,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -388,6 +394,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -388,6 +394,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER DATABASE d9 DEFAULT COLLATE ascii_general_ci; ALTER DATABASE d9 DEFAULT COLLATE ascii_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -397,6 +404,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -397,6 +404,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -407,6 +415,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -407,6 +415,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d9 COLLATE ascii_bin; ALTER SCHEMA d9 COLLATE ascii_bin;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -416,6 +425,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -416,6 +425,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -426,6 +436,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -426,6 +436,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d9 DEFAULT COLLATE ascii_bin; ALTER SCHEMA d9 DEFAULT COLLATE ascii_bin;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -435,6 +446,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -435,6 +446,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -445,6 +457,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -445,6 +457,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d9 COLLATE ascii_general_ci; ALTER SCHEMA d9 COLLATE ascii_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -454,6 +467,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -454,6 +467,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
CREATE DATABASE d9 DEFAULT CHARACTER SET ascii; CREATE DATABASE d9 DEFAULT CHARACTER SET ascii;
...@@ -464,6 +478,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -464,6 +478,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
ALTER SCHEMA d9 DEFAULT COLLATE ascii_general_ci; ALTER SCHEMA d9 DEFAULT COLLATE ascii_general_ci;
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA ORDER BY SCHEMA_NAME;
...@@ -473,5 +488,6 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -473,5 +488,6 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d9; DROP DATABASE d9;
...@@ -7,6 +7,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -7,6 +7,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d12; DROP DATABASE d12;
CREATE DATABASE d12 CHARACTER SET utf8; CREATE DATABASE d12 CHARACTER SET utf8;
...@@ -17,6 +18,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -17,6 +18,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d12; DROP DATABASE d12;
CREATE DATABASE d12 CHARACTER SET binary; CREATE DATABASE d12 CHARACTER SET binary;
...@@ -27,6 +29,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -27,6 +29,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d12; DROP DATABASE d12;
CREATE DATABASE d12 CHARACTER SET swe7; CREATE DATABASE d12 CHARACTER SET swe7;
...@@ -37,6 +40,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -37,6 +40,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d12; DROP DATABASE d12;
CREATE DATABASE d12 CHARACTER SET cp1251; CREATE DATABASE d12 CHARACTER SET cp1251;
...@@ -47,6 +51,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -47,6 +51,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d12; DROP DATABASE d12;
CREATE SCHEMA d12 CHARACTER SET ascii; CREATE SCHEMA d12 CHARACTER SET ascii;
...@@ -57,6 +62,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -57,6 +62,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d12; DROP SCHEMA d12;
CREATE SCHEMA d12 CHARACTER SET utf8; CREATE SCHEMA d12 CHARACTER SET utf8;
...@@ -67,6 +73,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -67,6 +73,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d12; DROP SCHEMA d12;
CREATE SCHEMA d12 CHARACTER SET binary; CREATE SCHEMA d12 CHARACTER SET binary;
...@@ -77,6 +84,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -77,6 +84,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d12; DROP SCHEMA d12;
CREATE SCHEMA d12 CHARACTER SET swe7; CREATE SCHEMA d12 CHARACTER SET swe7;
...@@ -87,6 +95,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -87,6 +95,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d12; DROP SCHEMA d12;
CREATE SCHEMA d12 CHARACTER SET cp1251; CREATE SCHEMA d12 CHARACTER SET cp1251;
...@@ -97,5 +106,6 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -97,5 +106,6 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d12; DROP SCHEMA d12;
...@@ -7,6 +7,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -7,6 +7,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d13; DROP DATABASE d13;
CREATE DATABASE d13 CHARACTER SET latin2 COLLATE latin2_general_ci; CREATE DATABASE d13 CHARACTER SET latin2 COLLATE latin2_general_ci;
...@@ -17,6 +18,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -17,6 +18,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d13; DROP DATABASE d13;
CREATE DATABASE d13 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci; CREATE DATABASE d13 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci;
...@@ -27,6 +29,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -27,6 +29,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP DATABASE d13; DROP DATABASE d13;
CREATE SCHEMA d13 CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE SCHEMA d13 CHARACTER SET utf8 COLLATE utf8_general_ci;
...@@ -37,6 +40,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -37,6 +40,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d13; DROP SCHEMA d13;
CREATE SCHEMA d13 CHARACTER SET latin2 COLLATE latin2_general_ci; CREATE SCHEMA d13 CHARACTER SET latin2 COLLATE latin2_general_ci;
...@@ -47,6 +51,7 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -47,6 +51,7 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d13; DROP SCHEMA d13;
CREATE SCHEMA d13 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci; CREATE SCHEMA d13 CHARACTER SET cp1250 COLLATE cp1250_croatian_ci;
...@@ -57,5 +62,6 @@ def information_schema utf8 utf8_general_ci NULL ...@@ -57,5 +62,6 @@ def information_schema utf8 utf8_general_ci NULL
def mtr latin1 latin1_swedish_ci NULL def mtr latin1 latin1_swedish_ci NULL
def mysql latin1 latin1_swedish_ci NULL def mysql latin1 latin1_swedish_ci NULL
def performance_schema utf8 utf8_general_ci NULL def performance_schema utf8 utf8_general_ci NULL
def sys utf8 utf8_general_ci NULL
def test latin1 latin1_swedish_ci NULL def test latin1 latin1_swedish_ci NULL
DROP SCHEMA d13; DROP SCHEMA d13;
...@@ -7,6 +7,7 @@ information_schema ...@@ -7,6 +7,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
SHOW DATABASES LIKE 'd%'; SHOW DATABASES LIKE 'd%';
Database (d%) Database (d%)
...@@ -18,6 +19,7 @@ information_schema ...@@ -18,6 +19,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
USE d1; USE d1;
DROP DATABASE d1; DROP DATABASE d1;
...@@ -29,6 +31,7 @@ information_schema ...@@ -29,6 +31,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
SHOW SCHEMAS LIKE 'd%'; SHOW SCHEMAS LIKE 'd%';
Database (d%) Database (d%)
...@@ -40,6 +43,7 @@ information_schema ...@@ -40,6 +43,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
USE d1; USE d1;
DROP SCHEMA d1; DROP SCHEMA d1;
...@@ -7,6 +7,7 @@ information_schema ...@@ -7,6 +7,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
CREATE DATABASE d4; CREATE DATABASE d4;
ERROR HY000: Can't create database 'd4'; database exists ERROR HY000: Can't create database 'd4'; database exists
...@@ -17,4 +18,5 @@ information_schema ...@@ -17,4 +18,5 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
...@@ -4,6 +4,7 @@ information_schema ...@@ -4,6 +4,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
CREATE DATABASE mysql; CREATE DATABASE mysql;
ERROR HY000: Can't create database 'mysql'; database exists ERROR HY000: Can't create database 'mysql'; database exists
...@@ -13,4 +14,5 @@ information_schema ...@@ -13,4 +14,5 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
...@@ -10,6 +10,7 @@ information_schema ...@@ -10,6 +10,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
USE d2; USE d2;
DROP DATABASE d2; DROP DATABASE d2;
...@@ -27,6 +28,7 @@ information_schema ...@@ -27,6 +28,7 @@ information_schema
mtr mtr
mysql mysql
performance_schema performance_schema
sys
test test
USE d2; USE d2;
DROP SCHEMA d2; DROP SCHEMA d2;
......
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