1--source include/innodb_page_size_small.inc 2--source include/have_file_key_management.inc 3 4CREATE TABLE t1(c1 INT, b VARCHAR(2400), index(b(100),c1)) 5ENGINE=INNODB ROW_FORMAT=compressed ENCRYPTED=YES; 6 7BEGIN; 8let $n= 5000; 9let $i= $n; 10let $u= `SELECT uuid()`; 11--disable_query_log 12while ($i) { 13 eval INSERT INTO t1 14 VALUES($n-$i, concat('$u', $n-$i, repeat('ab', floor(rand()*100)), '$u')); 15 dec $i; 16} 17--enable_query_log 18COMMIT; 19 20echo # xtrabackup backup; 21--disable_result_log 22let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; 23exec $INNOBACKUPEX --defaults-file=$MYSQLTEST_VARDIR/my.cnf --no-timestamp $targetdir; 24drop table t1; 25exec $INNOBACKUPEX --apply-log $targetdir; 26 27-- source include/restart_and_restore.inc 28--enable_result_log 29select sum(c1) from t1; 30DROP TABLE t1; 31rmdir $targetdir; 32