1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
--echo ########################################################################
--echo #
--echo # This test will first verify the DD schema of the currently running
--echo # server, and dump the SHOW CREATE statements for the DD tables to
--echo # a file. Then, it will unzip a data dirctory from each of the
--echo # previous 8.0 versions from which upgrade is supported, restart the
--echo # server to make it do upgrade, and verify that the DD tables after
--echo # upgrade are similar to those that are created when initializing the
--echo # target server.
--echo #
--echo # The zipped data directories were created on case sensitive file
--echo # systems with lower_case_table_names == 0. There is a corresponding
--echo # test for upgrade from 5.7.
--echo #
--echo ########################################################################
--source include/have_case_sensitive_file_system.inc
--source include/have_debug.inc
--source include/not_valgrind.inc
--source include/big_test.inc
--source include/mysql_upgrade_preparation.inc
--echo ########################################################################
--echo # Assert target schema ids.
--echo ########################################################################
--source include/dd_schema_assert_ids.inc
--echo ########################################################################
--echo # Assert target schema table names.
--echo ########################################################################
--source include/dd_schema_assert_and_fill_table_names.inc
--echo ########################################################################
--echo # Dump DD table definitions to file.
--echo ########################################################################
--let $target_table_defs = $MYSQL_TMP_DIR/target_definitions.txt
--let $file = $target_table_defs
--source include/dd_schema_dump_table_defs_debug.inc
--echo ########################################################################
--echo # Dump mysql.dd_properties to file.
--echo ########################################################################
--let $target_dd_props = $MYSQL_TMP_DIR/target_dd_properties.txt
--let $file = $target_dd_props
# We must filter out unpredictable values such as root page no and ids.
# This simple filter will remove a bit more than strictly necessary.
--let $filter = id|root|MYSQLD_VERSION_LO
--source include/dd_schema_dd_properties.inc
--echo ########################################################################
--echo # Stop the running server.
--echo ########################################################################
--let $shutdown_server_timeout= 300
--source include/shutdown_mysqld.inc
--echo ########################################################################
--let $VERSION = 80011
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80012
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80013
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80014
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80015
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80016
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80017
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--let $VERSION = 80018
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc
--echo ########################################################################
--echo # Cleanup: Remove definition files and restart with default options.
--echo ########################################################################
--remove_file $target_table_defs
--remove_file $target_dd_props
let $restart_parameters =;
--source include/start_mysqld.inc
|