June 19, 2013

Post: How to recover table structure from InnoDB dictionary

… corrupt table with Percona Data Recovery Tool for InnoDB you need two things: media with records(ibdata1, *.ibd, disk image, etc.) and… to have an accurate table definition to ensure a successful recovery. Even an unnoticeable difference like NULL or NOT NULL can… the recovery tool bzr branch lp:percona-data-recovery-tool-for-innodb 1. Compile the dictionary parsers make dict_parsers 2. Split ibdata1

Comment: How to recover table structure from InnoDB dictionary

… means all tables are in ibdata1. 2) if it was HW problem and ibdata1 was saved then ibdata1 should be valid, maybe with… it http://www.percona.com/docs/wiki/innodb-data-recovery-tool:mysql-data-recovery:start . The biggest challenge here is to find… each table – http://www.percona.com/docs/wiki/innodb-data-recovery-tool:mysql-data-recovery:advanced_techniques#recovering_the_data_dictionary

Post: Recovery after DROP & CREATE

…-3| grep 15 | grep PRIMARY LOAD DATA INFILE ‘/root/src/recovery-tool/s_tools/dumps/default/SYS_INDEXES’ REPLACE INTO TABLE…:34:33″ How does the following “CREATE TABLE” make the recovery any harder? When a table gets dropped InnoDB deletes respective…/mysql/ibdata1 # ./bin/constraints_parser.SYS_TABLES -4Df pages-1345220873/FIL_PAGE_INDEX/0-1 LOAD DATA INFILE ‘/root/src/recovery-tool…

Post: Recovery deleted ibdata1

… table space – ibdata1 – and redo logs – ib_logfile*. MySQL keeps InnoDB files open all the time. The following recovery technique is based…/lib/mysql# cp /proc/14101/fd/3 /var/lib/mysql/ibdata1 root@localhost:/var/lib/mysql# cp /proc/14101/fd/8…_logfile* do exist Do not restart MySQL until the further recovery strategy is clear

Comment: Connecting orphaned .ibd files

… trying to use innochecksum to fix ibdata1 I get this error: ./innochecksum -f /var/lib/mysql/ibdata1.recovery page 65 invalid (fails log… make a copy of ibdata1 using dd because the server crashed and ibdata got corrupted: dd if=ibdata1 of=ibdata1.recovery conv=noerrors Any…

Post: A recovery trivia or how to recover from a lost ibdata1 file

… SAN to another, something went wrong and they lost the ibdata1 file, where all the table meta-data is stored. Fortunately…))” test; done Recovering the tables With all this in place, recovery the data was just another Bash script: #!/bin/bash CURRENT… staging) contained an extra column. With a modified schema, the recovery completed. The customer was able to download the tables in…

Comment: Connecting orphaned .ibd files

…; second = 0xA33EC800 [root@lightbringer percona-data-recovery-tool-for-innodb]# ./innochecksum /var/lib/mysql/ibdata1.recovery -l 0xA33EC800 page 84 invalid (fails log…; recorded = 0x8AB50009 [root@lightbringer percona-data-recovery-tool-for-innodb]# ./innochecksum /var/lib/mysql/ibdata1.recovery -f page 84 invalid (fails new style…

Post: Copying InnoDB tables between servers

…: Temporary instance for recovery is set as followings. xtrabackup: innodb_data_home_dir = ./ xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend xtrabackup… down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files… InnoDB: Doing recovery: scanned up to log sequence…

Post: Connecting orphaned .ibd files

… alien ibdata1. There are several situation when you have to: 1. ibdata1 is erroneously removed 2. ibdata1 is heavily corrupted and innodb_force_recovery… this point. There is a tool ibdconnect in Percona InnoDB Recovery Tool. Make sure you’re using the latest version from…_id is already used. It will refuse to update ibdata1: $ ./ibdconnect -o ibdata1 -f t2.ibd -d sakila -t actor … Error: Space…

Comment: xtrabackup-1.2

…: Temporary instance for recovery is set as followings. xtrabackup: innodb_data_home_dir = ./ xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend xtrabackup…: innodb_log_file_size = 2097152 xtrabackup: Starting InnoDB instance for recovery. xtrabackup: Using 104857600 bytes for buffer pool (set by –use…