June 19, 2013

Comment: INSERT INTO ... SELECT Performance with Innodb tables.

… 38, OS thread handle 0x2b3c1c776940, query id 16838101 localhost root Copying to tmp table create table t as SELECT ld.label_id, cai… on (cai.client_id = d.client_id) inner join label_to_device ld on (ld.device_id = d.id) where ld…

Post: Migrating between MySQL schemas with Percona Xtrabackup

… quick refresher, Xtrabackup works by copying the dirty tablespace files while streaming the redo-logs to ensure that all transactions are also…-log –export /tmp/snapshot/2013-06-03_11-30 For each table, run:  ALTER TABLE tblname DISCARD TABLESPACE Copy the .exp and .ibd files from the snapshot to the new instance:  cp /tmp/snapshot/2013-06-03…

Post: Percona XtraBackup 2.1.0 'release candidate' for MySQL available for download

… pool dump is copied into backup directory during the backup stage. During the copy back stage (restore) it is copied back to data directory… corresponding to tables that are missing in the incremental backup directory. Bug fixed #856400. Percona XtraBackup would leave stale xtrabackup_tmp* files…

Post: Percona XtraBackup 2.0.7 for MySQL available for download

… pool dump is copied into backup directory during the backup stage. During the copy back stage (restore) it is copied back to data directory… corresponding to tables that are missing in the incremental backup directory. Bug fixed #856400. Percona XtraBackup would leave stale xtrabackup_tmp* files…

Post: How to convert MySQL's SHOW PROFILES into a real profile

… | Pct_R | Calls | R/Call | +———————-+———-+——-+——-+————–+ | removing tmp table | 0.095135 | 55.10 | 3 | 0.0317116667 | | Copying to tmp table | 0.046175 | 26.74 | 1… | | checking permissions | 0.000802 | 0.46 | 6 | 0.0001336667 | | Creating tmp table | 0.000548 | 0.32 | 1 | 0.0005480000 | | Opening tables…

Post: Improved InnoDB fast index creation

… | 0.000040 | | creating table | 0.002176 | | After create | 0.000058 | | copy to tmp table | 18.083490 | | restoring secondary keys | 17.824109 | | rename result…: 4194304 Duplicates: 0 Warnings: 0 mysql> SHOW PROFILE; +——————————+————+ | Status | Duration | +——————————+————+ . . . | copy to tmp table | 184.694432 | . . . +——————————+————+ 18 rows in set (0.00 sec…

Post: How to use tcpdump on very busy hosts

… $REMOTEHOST — “rm -f $TMP/$TMPfile $TMP/$RESfile”; rm -f $LOCKFILE $RESfile; exit’ INT TERM EXIT # digest the result, copy to localhost, then email it ssh $REMOTEHOST — “mk-query-digest –type tcpdump –limit $LIMIT < $TMP/$TMPfile 2>&1 > $TMP/$RESfile” scp -q $REMOTEHOST:$TMP

Post: How to recover a single InnoDB table from a Full Backup

…. Then, our first step is to get a consistent backup. First we need to copy all the data to an output directory: The –export option is the magic trick that will help us to get… TABLE salaries DISCARD TABLESPACE; Copy the salaries.ibd files from the backup to the database data directory: # cp /tmp/2012-01-22_14…

Post: xtrabackup-0.5, bugfixes, incremental backup introduction

… 06:03:29 innobackupex: Connection to database server closed innobackupex: Backup created in directory ‘/mnt/data/tmp‘ innobackupex: MySQL binlog position: filename… be copied to specified dir. You may have several incremental dir, and apply them one-by-one. Current version does not allow to copy