… records(ibdata1, *.ibd, disk image, etc.) and a table structure. Indeed, there is no information about the table structure in an InnoDB page. Normally… .frm files is not an option: Table was dropped and innodb_file_per_table is ON Frm file corrupt, zeroed out, lost or SHOW CREATE TABLE crashes MySQL…
Post: Percona XtraBackup 2.0.7 for MySQL available for download
… merged. Fixed by removing files corresponding to tables that are missing in …#1130145. Percona XtraBackup didn’t initialize per-thread data in the log… #945161. Missing space_id from *.ibd.meta would lead to assertion….. innobackupex wasn’t handling the innodb_data_file_path option which could cause …
Post: Connecting orphaned .ibd files
… or several ibdata files. A well known innodb_file_per_table option brings the second one. Tables and system areas are split into different files. Usually system… every InnoDB table has two files e.g. actor.frm and actor.ibd. The annoying thing about .ibd files you can’t easily copy the an .ibd file…
Post: A recovery trivia or how to recover from a lost ibdata1 file
… were running with innodb_file_per_table so the data itself was available. What they could provide us was: all the tables ibd files (Nearly 200 of… the Innodb tablespace id is minus one of a customer table alter the table definition from MyISAM to Innodb Discard the tablespace Replace the table ibd file…
Post: Spreading .ibd files across multiple disks; the optimization that isn't
… – “If you enable innodb_file_per_table, each table is it’s own .ibd file. You can then relocate the heavy hit tables to a different location and create symlinks to the original location.” There are a few things wrong with this advice: InnoDB does not support these symlinks. If you run an ALTER TABLE command, what you will…
Post: How much space does empty Innodb table take ?
… Innodb take: mysql> create table test_innodb(a int, b int) engine=innodb; Query OK, 0 rows affected (0.30 sec) Check out files (using Innodb File Per Table… having very small Innodb tables – they will take much more space than MyISAM. So .ibd file we get in case of table having no indexes…
Post: How innodb_open_files affects performance
… – innodb_open_files which defines how many files Innodb will keep open while working in innodb_file_per_table mode. Unlike MyISAM Innodb does not have to keep open file descriptor when table is open – open table is purely logical state and appropriate .ibd file…
Post: How to recover a single InnoDB table from a Full Backup
… or alter the schema of the table after the backup has been taken. The variable innodb_file_per_table must be enabled. Then, our first… if table was “exported” with Xtrabackup as this exports essential information from main tablespace which is not stored in .ibd file. innodb_import_table_from…
Post: Recovering Innodb table Corruption
… much harder to recover the table. In this example I actually went ahead and manually edited test.ibd file replacing few bytes so corruption is mild. First I should note CHECK TABLE in INNODB is pretty useless. For my manually corrupted table… this case we have about 280 bytes per row so we get about 50 rows per page so not a big surprise…
Post: Learning about MySQL Table Fragmentation
… happen in case Innodb table file is itself fragmented. To check if this is the case I usually do “cat table.ibd > /dev/null” and… the same – OPTIMIZE TABLE tbl – this command recreates the table by writing the new .ibd file (if you’re using innodb_file_per_table=1) which normally would…

