64 lines
3.4 KiB
Plaintext
64 lines
3.4 KiB
Plaintext
###########################################################################
|
|
# Stop the default mtr server
|
|
###########################################################################
|
|
# Stop DB server which was created by MTR default
|
|
###########################################################################
|
|
# Setup the 8.0.11 data directory
|
|
###########################################################################
|
|
# Copy the remote tablespace & DB zip files from suite location to working location.
|
|
# Check that the file exists in the working folder.
|
|
# Unzip the zip file.
|
|
###########################################################################
|
|
# Test the --upgrade=NONE option with a 8.0.11 data directory
|
|
###########################################################################
|
|
# Search for the error message in the server error log.
|
|
Pattern "Server shutting down because upgrade is required, yet prohibited by the command line option \'--upgrade=NONE\'\." found
|
|
###########################################################################
|
|
# Test the --upgrade=MINIMAL option with a 8.0.11 data directory
|
|
###########################################################################
|
|
# Search for the error message in the server error log.
|
|
Pattern "Server upgrade is required, but skipped by command line option \'--upgrade=MINIMAL\'\." found
|
|
###########################################################################
|
|
# Test the --upgrade=NONE option with a 8.0.11 data directory with upgraded
|
|
# data dictionary but skipped server upgrade
|
|
###########################################################################
|
|
# Search for the error message in the server error log.
|
|
Pattern "Server shutting down because upgrade is required, yet prohibited by the command line option \'--upgrade=NONE\'\." found
|
|
###########################################################################
|
|
# Complete the upgrade on a data directory that has an upgraded data
|
|
# dictionary but skipped server upgrade
|
|
###########################################################################
|
|
# There should be no errors
|
|
Pattern "\[ERROR\]" not found
|
|
###########################################################################
|
|
# Test upgrade of help tables
|
|
###########################################################################
|
|
# Truncate a help table
|
|
TRUNCATE TABLE mysql.help_topic;
|
|
SELECT COUNT(*) = 0 FROM mysql.help_topic;
|
|
COUNT(*) = 0
|
|
1
|
|
# restart: --upgrade=FORCE --log-error=MYSQLD_LOG
|
|
SELECT COUNT(*) != 0 FROM mysql.help_topic;
|
|
COUNT(*) != 0
|
|
1
|
|
###########################################################################
|
|
# Cleanup
|
|
###########################################################################
|
|
###########################################################################
|
|
# Setup 8.0.11 data directory
|
|
###########################################################################
|
|
# Copy the remote tablespace & DB zip files from suite location to working location.
|
|
# Check that the file exists in the working folder.
|
|
# Unzip the zip file.
|
|
###########################################################################
|
|
# Test complete upgrade on 8.0.11 data directory
|
|
###########################################################################
|
|
# There should be no errors
|
|
Pattern "\[ERROR\]" not found
|
|
# Stop DB server
|
|
###########################################################################
|
|
# Cleanup
|
|
###########################################################################
|
|
# restart:
|