######################################################################## # # This test will first verify the DD schema of the currently running # server, and dump the SHOW CREATE statements for the DD tables to # a file. Then, it will unzip a data dirctory from each of the # previous 8.0 versions from which upgrade is supported, restart the # server to make it do upgrade, and verify that the DD tables after # upgrade are similar to those that are created when initializing the # target server. # # The zipped data directories were created on case sensitive file # systems with lower_case_table_names == 0. There is a corresponding # test for upgrade from 5.7. # ######################################################################## ######################################################################## # Assert target schema ids. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert target schema table names. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump DD table definitions to file. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump mysql.dd_properties to file. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/target_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Stop the running server. ######################################################################## ######################################################################## # Test upgrade from 80011. ######################################################################## ######################################################################## # Unzip a 80011 datadir, start the server against it and prepare a # file containing the DD table definitions after upgrade. ######################################################################## ######################################################################## # Copy and unzip the datadir. ######################################################################## ######################################################################## # Restart the server against the unzipped datadir. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Verify that we can restart after upgrade. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Target schema ids for an upgrade from 80011 should hold. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert actual schema table names after upgrade. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table definitions after upgrade to file and # compare to target. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table properties after upgrade to file and # compare to target. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/actual_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Remove copied files and stop the server. ######################################################################## ######################################################################## # Test upgrade from 80012. ######################################################################## ######################################################################## # Unzip a 80012 datadir, start the server against it and prepare a # file containing the DD table definitions after upgrade. ######################################################################## ######################################################################## # Copy and unzip the datadir. ######################################################################## ######################################################################## # Restart the server against the unzipped datadir. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Verify that we can restart after upgrade. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Target schema ids for an upgrade from 80012 should hold. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert actual schema table names after upgrade. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table definitions after upgrade to file and # compare to target. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table properties after upgrade to file and # compare to target. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/actual_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Remove copied files and stop the server. ######################################################################## ######################################################################## # Test upgrade from 80013. ######################################################################## ######################################################################## # Unzip a 80013 datadir, start the server against it and prepare a # file containing the DD table definitions after upgrade. ######################################################################## ######################################################################## # Copy and unzip the datadir. ######################################################################## ######################################################################## # Restart the server against the unzipped datadir. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Verify that we can restart after upgrade. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Target schema ids for an upgrade from 80013 should hold. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert actual schema table names after upgrade. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table definitions after upgrade to file and # compare to target. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table properties after upgrade to file and # compare to target. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/actual_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Remove copied files and stop the server. ######################################################################## ######################################################################## # Test upgrade from 80014. ######################################################################## ######################################################################## # Unzip a 80014 datadir, start the server against it and prepare a # file containing the DD table definitions after upgrade. ######################################################################## ######################################################################## # Copy and unzip the datadir. ######################################################################## ######################################################################## # Restart the server against the unzipped datadir. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Verify that we can restart after upgrade. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Target schema ids for an upgrade from 80014 should hold. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert actual schema table names after upgrade. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table definitions after upgrade to file and # compare to target. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table properties after upgrade to file and # compare to target. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/actual_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Remove copied files and stop the server. ######################################################################## ######################################################################## # Test upgrade from 80015. ######################################################################## ######################################################################## # Unzip a 80015 datadir, start the server against it and prepare a # file containing the DD table definitions after upgrade. ######################################################################## ######################################################################## # Copy and unzip the datadir. ######################################################################## ######################################################################## # Restart the server against the unzipped datadir. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Verify that we can restart after upgrade. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Target schema ids for an upgrade from 80015 should hold. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert actual schema table names after upgrade. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table definitions after upgrade to file and # compare to target. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table properties after upgrade to file and # compare to target. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/actual_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Remove copied files and stop the server. ######################################################################## ######################################################################## # Test upgrade from 80016. ######################################################################## ######################################################################## # Unzip a 80016 datadir, start the server against it and prepare a # file containing the DD table definitions after upgrade. ######################################################################## ######################################################################## # Copy and unzip the datadir. ######################################################################## ######################################################################## # Restart the server against the unzipped datadir. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Verify that we can restart after upgrade. ######################################################################## # restart: --datadir=MYSQLD_DATADIR_UPGRADE --log-error-verbosity=3 --log-error=MYSQLD_LOG ######################################################################## # Target schema ids for an upgrade from 80016 should hold. ######################################################################## ######################################################################## # Verify the hard coded ids of the mysql schema, the mysql tablespace, # the dd_properties table, and the innodb_dynamic_metadata table. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The id of the mysql schema must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' schema is 1.] ######################################################################## # The ids of the mysql tablespace must be fixed. ######################################################################## include/assert.inc [The id of the 'mysql' tablespace is 1.] include/assert.inc [The SE private id of the 'mysql' tablespace is 4294967294.] ######################################################################## # The ids of the dd_properties table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.dd_properties' is 1.] include/assert.inc [The SE private id of 'mysql.dd_properties' is 1.] include/assert.inc [The clustering index id of 'mysql.dd_properties' is 1.] ######################################################################## # The ids of the innodb_dynamic_metadata table must be fixed. ######################################################################## include/assert.inc [The id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The SE private id of 'mysql.innodb_dynamic_metadata' is 2.] include/assert.inc [The index id of 'mysql.innodb_dynamic_metadata' is 2.] SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Assert actual schema table names after upgrade. ######################################################################## ######################################################################## # Verify the existence of the expected DD tables, neither less nor more. # Fill two help tables with the DD and DDSE table names. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The number of hidden DD/DDSE tables must be as expected. ######################################################################## include/assert.inc [There are 33 hidden DD/DDSE tables.] include/assert.inc [There are 35 DD/DDSE tables in total.] ######################################################################## # No unexpected DD tables must be present. ######################################################################## include/assert.inc [No unexpected DD tables are present.] ######################################################################## # All expected DD tables must be present. ######################################################################## include/assert.inc [All expected DD tables are present.] ######################################################################## # All expected DDSE tables must be present. ######################################################################## include/assert.inc [All expected DDSE are be present.] DROP TABLE test.ddse_table_names; DROP TABLE test.dd_table_names; SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table definitions after upgrade to file and # compare to target. ######################################################################## ######################################################################## # Verify the DD_VERSION and the CREATE TABLE statements of the # DD tables. ######################################################################## SET debug = '+d,skip_dd_table_access_check'; ######################################################################## # The actual DD version stored on disk. ######################################################################## ######################################################################## # List the CREATE TABLE statements for the DD tables. # Mask the AUTO INCREMENT counter, which is not # deterministic when running mtr. Mask collations that # depend on the lower case table names setting. ######################################################################## SET debug = '-d,skip_dd_table_access_check'; ######################################################################## # Dump actual DD table properties after upgrade to file and # compare to target. ######################################################################## set debug='+d,skip_dd_table_access_check'; SELECT * FROM mysql.dd_properties INTO OUTFILE 'MYSQL_TMP_DIR/actual_dd_properties.txt'; set debug='-d,skip_dd_table_access_check'; ######################################################################## # Remove copied files and stop the server. ######################################################################## ######################################################################## # Cleanup: Remove definition files and restart with default options. ######################################################################## # restart