mirror of
https://github.com/MariaDB/server.git
synced 2025-08-26 01:44:06 +03:00
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
--source include/have_innodb.inc
|
|
# embedded does not support restart
|
|
-- source include/not_embedded.inc
|
|
-- source include/not_valgrind.inc
|
|
# Avoid CrashReporter popup on Mac
|
|
-- source include/not_crashrep.inc
|
|
-- source filekeys_plugin_exists.inc
|
|
#
|
|
# MDEV-8750: Server crashes in page_cur_is_after_last on altering table using a wrong encryption key
|
|
#
|
|
call mtr.add_suppression("InnoDB: The page .* in file test/t1 cannot be decrypted");
|
|
# Suppression for builds where file_key_management plugin is linked statically
|
|
call mtr.add_suppression("Couldn't load plugins from 'file_key_management");
|
|
|
|
--write_file $MYSQLTEST_VARDIR/keys1.txt
|
|
1;770A8A65DA156D24EE2A093277530142
|
|
4;770A8A65DA156D24EE2A093277530143
|
|
EOF
|
|
|
|
--let $restart_parameters= --innodb-encrypt-tables --innodb-stats-persistent --plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQLTEST_VARDIR/keys1.txt
|
|
--source include/restart_mysqld.inc
|
|
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, f VARCHAR(8)) ENGINE=InnoDB ENCRYPTION_KEY_ID=4;
|
|
INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
|
|
|
|
--write_file $MYSQLTEST_VARDIR/keys2.txt
|
|
1;770A8A65DA156D24EE2A093277530142
|
|
4;770A8A65DA156D24EE2A093277530144
|
|
EOF
|
|
|
|
--let $restart_parameters= --innodb-encrypt-tables --innodb-stats-persistent --plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQLTEST_VARDIR/keys2.txt
|
|
--source include/restart_mysqld.inc
|
|
|
|
--error ER_GET_ERRMSG
|
|
select * from t1;
|
|
show warnings;
|
|
--error ER_GET_ERRMSG
|
|
alter table t1 discard tablespace;
|
|
show warnings;
|
|
--error ER_GET_ERRMSG
|
|
alter table t1 engine=InnoDB;
|
|
show warnings;
|
|
|
|
--let $restart_parameters= --innodb-encrypt-tables --innodb-stats-persistent --plugin-load-add=file_key_management.so --file-key-management --file-key-management-filename=$MYSQLTEST_VARDIR/keys1.txt
|
|
--source include/restart_mysqld.inc
|
|
|
|
DROP TABLE t1;
|
|
--remove_file $MYSQLTEST_VARDIR/keys1.txt
|
|
--remove_file $MYSQLTEST_VARDIR/keys2.txt
|