1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-27 05:41:41 +03:00
Files
mariadb/mysql-test/suite/mariabackup/incremental_backup.result
Michael Widenius b5615eff0d Write information about restart in .result
Idea comes from MySQL which does something similar
2019-04-01 19:47:24 +03:00

30 lines
628 B
Plaintext

call mtr.add_suppression("InnoDB: New log files created");
CREATE TABLE t(i INT PRIMARY KEY) ENGINE INNODB;
BEGIN;
INSERT INTO t VALUES(2);
connect con1,localhost,root,,;
SET GLOBAL innodb_flush_log_at_trx_commit = 1;
INSERT INTO t VALUES(1);
# Create full backup , modify table, then create incremental/differential backup
BEGIN;
INSERT INTO t VALUES(0);
DELETE FROM t WHERE i=0;
connection default;
COMMIT;
SELECT * FROM t;
i
1
2
# Prepare full backup, apply incremental one
disconnect con1;
# Restore and check results
# shutdown server
# remove datadir
# xtrabackup move back
# restart
SELECT * FROM t;
i
1
2
DROP TABLE t;