64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
--echo #
|
|
--echo # Bug#26431355 : ALTER TABLE COMMENT FAILS WITH FAILED TO DROP TABLE SDI AFTER UPGRADE
|
|
--echo #
|
|
|
|
--echo # This test scripts covers upgrade of tables, views, tablespaces,
|
|
--echo # events, stored routines and triggers from 5.7 to 8.0.
|
|
|
|
--source include/have_nodebug.inc
|
|
--source include/no_valgrind_without_big.inc
|
|
|
|
--echo # Set different paths for --datadir
|
|
let $MYSQLD_DATADIR1 = $MYSQL_TMP_DIR/data57;
|
|
|
|
--echo # Copy the remote tablespace & DB zip files from suite location to working location.
|
|
--copy_file $MYSQLTEST_VARDIR/std_data/data57.zip $MYSQL_TMP_DIR/data57.zip
|
|
|
|
--echo # Check that the file exists in the working folder.
|
|
--file_exists $MYSQL_TMP_DIR/data57.zip
|
|
|
|
--echo # Unzip the zip file.
|
|
--exec unzip -qo $MYSQL_TMP_DIR/data57.zip -d $MYSQL_TMP_DIR
|
|
|
|
|
|
--let $MYSQLD_DATADIR=`SELECT @@datadir`
|
|
|
|
--echo # Stop DB server which was created by MTR default
|
|
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
|
--let $shutdown_server_timeout= 300
|
|
--shutdown_server
|
|
--source include/wait_until_disconnected.inc
|
|
|
|
--echo # These files are added to test error scenario, delete from for upgrade testing.
|
|
--remove_file $MYSQL_TMP_DIR/data57/test/55_temporal.frm
|
|
--remove_file $MYSQL_TMP_DIR/data57/test/55_temporal.MYD
|
|
--remove_file $MYSQL_TMP_DIR/data57/test/55_temporal.MYI
|
|
--echo # Remove myisam partitioned tables. There are used for negative testing.
|
|
--remove_files_wildcard $MYSQL_TMP_DIR/data57/partitions *
|
|
--rmdir $MYSQL_TMP_DIR/data57/partitions
|
|
--force-rmdir $MYSQL_TMP_DIR/data57/mismatch_frms
|
|
|
|
--echo # Create a bootstrap file in temp location
|
|
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
|
|
--exec echo $MYSQL_TMP_DIR/bootstrap.log
|
|
|
|
let MYSQLD_LOG= $MYSQL_TMP_DIR/server.log;
|
|
|
|
--echo # Start the DB server. Server will create and populate Dictionary tables.
|
|
--exec echo "restart: --loose-skip-log-bin --datadir=$MYSQLD_DATADIR1 --log-error=$MYSQLD_LOG" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
|
--enable_reconnect
|
|
--let $wait_counter= 6000
|
|
--source include/wait_until_connected_again.inc
|
|
|
|
ALTER TABLE aview.t1 comment='abcd';
|
|
ALTER TABLE aview.t2 comment='efgh';
|
|
|
|
--echo # Remove copied files
|
|
--remove_file $MYSQL_TMP_DIR/data57.zip
|
|
--remove_file $MYSQLD_LOG
|
|
|
|
--echo # Restart the server with default options.
|
|
--let $wait_counter= 6000
|
|
--source include/restart_mysqld.inc
|
|
--force-rmdir $MYSQL_TMP_DIR/data57
|