First test of new MySQL Online Backup
If you’re coming to the MySQL User’s Conference next week, be sure to attend the sessions on backup and recovery, especially the session on the MySQL backup roadmap and the Online Backup BOF that will be hosted by the members of the MySQL Backup team.
I got a chance this week to kick the tires of our new online backup that the team has been working on, and I’m excited about the things I see. For a quick test, I did a backup of a 9 million row archive table in one session while I fired off several inserts into that same table in another session:
*** first session - running backup ***
mysql> select count(*) from t1; +----------+ | count(*) | +----------+ | 8964018 | +----------+ mysql> backup database bkp to 'bkp.txt'; +---------------------------------------+ | Backup Summary | +---------------------------------------+ | Backed up 1 table in database bkp. | | header = 754 bytes | | data = 123968768 bytes | | -------------- | | total 123969522 bytes | +---------------------------------------+ 6 rows in set (4.78 sec) mysql> select count(*) from t1; +----------+ | count(*) | +----------+ | 8964021 | +----------+
*** second session running inserts into same table ***
mysql> insert into t1 values (1,1,1,'h',1,1,'a',now(),now(),'a',1,1); Query OK, 1 row affected (0.00 sec) mysql> insert into t1 values (1,1,1,'h',1,1,'a',now(),now(),'a',1,1); Query OK, 1 row affected (0.00 sec) mysql> insert into t1 values (1,1,1,'h',1,1,'a',now(),now(),'a',1,1); Query OK, 1 row affected (0.00 sec)
Not bad! Again, make sure you stop by the backup sessions, check out the demos, and provide the team with lots of feedback. See you there!