May 25, 2012

Post: Using LVM for MySQL Backup and Replication Setup

FLUSH TABLES WITH READ LOCK Note – this command may take a while to complete if you have long running queries. The catch here is FLUSH TABLES WITH READ LOCK… which is done by running UNLOCK TABLES or simply closing connection. 5) … filesystem umount /mnt/backup 8) Remove snapshot: lvremove -f /dev/…

Post: Hacking to make ALTER TABLE online for certain changes

…=InnoDB To remove auto_increment, we (1) create table with the same layout but without auto_increment, (2) flush tables with read lock, (3) swap .frm files while keeping mysql suspended and (4) unlock the tables afterwards: — 1. mysql> CREATE TABLE `huge_table_new`…

Post: Heikki Tuuri Innodb answers - Part I

table scans and index scans more efficient. I can’t wait for ability to create physically sorted indexes with Innodb (withread-ahead, random read ahead ? HT: InnoDB schedules a sequential readunlocks (or never locksflush with a mutex in 5.1, to implement XA, and switching off the XA will not remove