June 19, 2013

Comment: How would you compress your MySQL Backup

… issue arises when restoring from that dump file. In any case I`ve encountered I`ve had problems with restoring InnoDB tables larger then 2KK rows. The restore takes as long as 3 hours on… interesting to have a case study on a medium database restore with different server settings. I was planning to have this…

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

… reason is that the table definition is stored in the InnoDB shared tablespace (ibdata) and the transaction IDs and log sequence…. First, you must meet certain prerequisites to be able to restore a ibd tablespace: The ibd file must be from a… –export option runs a recovery process on the backup with innodb_fast_shutdown=0 and therefore merging all the insert buffers…

Post: My "hot" list for next InnoDB features

Many InnoDB scalability problems seem fixed in InnoDB-plugin-1.0.3 and I expect InnoDB-plugin will run fine on 16-24… table from one server to different or (basically the same) restore single table from backup, possibly on different server (different slave… 500GB backup while you need to restore only single 20GB table is very non-productive Open InnoDB tables in parallel. Currently opening…

Post: Moving from MyISAM to Innodb or XtraDB. Basics

… differences between MyISAM and Innodb though well it is typically easily spotted by converting tables to Innodb on restored backup. Full text search… in MyISAM but would not fit to Innodb, though this is an exception. Space Innodb Tables tend to be larger. Again converting… most important values to check are innodb_flush_log_at_trx_commit, innodb_buffer_pool_size and innodb_log_file_size. There are…

Post: How innodb_open_files affects performance

…:43:36 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files… InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer… InnoDB: Doing…

Post: InnoDB: look after fragmentation

…=InnoDB Table has 11864696 rows and takes Data_length: 698,351,616 bytes on disk The problem is that after restoring table…: 11569733 # InnoDB_IO_r_ops: 38530 InnoDB_IO_r_bytes: 631275520 InnoDB_IO_r_wait: 0.204893 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_pages…

Post: How to recover deleted rows from an InnoDB Tablespace

… because we don’t have a backup or the backup restore process doesn’t work. How can I recover deleted rows…) > select i.INDEX_ID, i.NAME FROM INNODB_SYS_INDEXES as i INNER JOIN INNODB_SYS_TABLES as t USING(TABLE_ID… the error log. mysql (employees) > CREATE TABLE innodb_table_monitor (id int) ENGINE=InnoDB; TABLE: name employees/salaries, id 18, flags 1…

Post: Impossible - possible, moving InnoDB tables between servers

…, I see real needs in this: – when we need to restore only single table from backup (sometimes developers kill only single… source. (on destination you should have XtraDB with innodb_expand_import extension and with innodb_expand_import=1 setting) 4) run alter… in error.log like: InnoDB: import: extended import of test/img_out59 InnoDB: import: 3 indexes are detected. InnoDB: Progress in %: 1 2…

Post: Should you move from MyISAM to Innodb ?

… but will start taking way too much time to do restore for Innodb. On large scale installations mysqldump does not work anyway… but instantly break upon upgrading to Innodb. Features The MyISAM features which forbid moving to Innodb are typically Full Text Search and…) for logging. Innodb Needs Tuning As a final note about MyISAM to Innodb migration I should mention about Innodb tuning. Innodb needs tuning. Really…

Post: Magic Innodb Recovery self healing

… this particular corruption instance Innodb did not print table name in question), drop tables, restart Innodb without innodb_force_recovery and load them… to get lucky second time today. And Indeed Restarting Innodb with innodb_force_recovery=0 allowed it to start normally and I… you to recover more data or avoid full dump and restore. Another trick which helped me in previous instances, but not…