summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/encryption/t/innodb_first_page.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/encryption/t/innodb_first_page.test')
-rw-r--r--mysql-test/suite/encryption/t/innodb_first_page.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/suite/encryption/t/innodb_first_page.test b/mysql-test/suite/encryption/t/innodb_first_page.test
new file mode 100644
index 00000000..db4d8eb3
--- /dev/null
+++ b/mysql-test/suite/encryption/t/innodb_first_page.test
@@ -0,0 +1,22 @@
+#
+# MDEV-8021 "InnoDB: Tablespace id 4 encrypted but encryption service not available. Can't continue opening tablespace" on server restart when there are encrypted tables
+#
+
+--source include/have_innodb.inc
+--source include/have_file_key_management_plugin.inc
+--source include/innodb_undo_tablespaces.inc
+
+let $datadir=`select @@datadir`;
+--source include/shutdown_mysqld.inc
+
+--remove_file $datadir/ib_logfile0
+--remove_file $datadir/ibdata1
+--remove_files_wildcard $datadir undo*
+
+--source include/start_mysqld.inc
+
+create table t1 (a int);
+
+--source include/restart_mysqld.inc
+
+drop table t1;