Question

Locked

Corrupted innodb table crashing mysql instance how to recover table?

By WilliamRams ·
Tags: Windows, Software
Hello,

Running a simple query against corrupted innodb table is crashing mysql instance .

table test.xyz got corrupt during crash and truncate table command was in progressing when mysql crash , now
running a simple select * query is also crashing db .
mysql> use test;
Database changed
mysql> select * from xyz;
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql>
mysql>
mysql> select * from xzy;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR:
Can't connect to the server


Error Log :

[ERROR] Build InnoDB index translation table for Table ./test/xyz failed
[ERROR] Table ./test/xyz has no primary key in InnoDB data dictionary, but has one in MySQL! If you created the table with a MySQL version < 3.23.54 and did not define a primary key, but defined a unique key with all non-NULL columns, then MySQL internally treats that key as the primary key. You can fix this error by dump DROP CREATE reimport of the table.
[Warning] Table ../test/xyz key_used_on_scan is 0 even though there is no primary key inside InnoDB.
[ERROR] Innodb could not find key n 0 with name PRIMARY from dict cache for table test.xyz

Any suggestion on how to recreate table will be highly appreciated .

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Try to start mysql with innodb_force_recovery

by derick.s In reply to Corrupted innodb table cr ...

Try to start mysql with innodb_force_recovery = 6

Or to try to restore by means of the tool:
MySql Recovery Toolbox and find out how you can use the corrupt MySQL recovery tool for damaged database restoration and easily repair known issues or already known problems, occurred in MySql files. This MySql repair utility offers many benefits like:

Supports all MySql file versions and parses even very large documents on older PC computers;
Supports primary and external keys, tables, views, indexes and other objects;
Allows previewing recovered data in freeware mode so you can get results without purchasing MySql Recovery Toolbox

For more information: http://www.mysqlrecoverytoolbox.com/

As you can look for the answer here: http://www.filerepairforum.com/forum/databases/databases-aa/mysql/197-corrupted-innodb-table-crashing-mysql-instance-how-to-recover-table

Collapse -

SQL Database Repair

by RuthM.Smith In reply to Corrupted innodb table cr ...

If you have positive possibilities inaccessible of MS SQL server and want to repair. With the SQL server database repair tool, we give the possibility to repair damaged SQL database of master.mdf, tempdb.mdf, Model.mdf and database files msdb.mdf efficient.

Try:- http://www.filesrecoverytool.com/sql-database-repair.html

Collapse -

SQL Database Repair

by RuthM.Smith In reply to Corrupted innodb table cr ...

If you have positive possibilities inaccessible of MS SQL server and want to repair. With the SQL server database repair tool, we give the possibility to repair damaged SQL database of master.mdf, tempdb.mdf, Model.mdf and database files msdb.mdf efficient.

Try:- http://www.filesrecoverytool.com/sql-database-repair.html

Collapse -

SQL database recovery

by ronald_gomez41 In reply to Corrupted innodb table cr ...

You can also try to use MS SQL database recovery tool to recover deleted files from MS SQL server database. More details you can visit this site :- http://www.sql.recoverydeletedfiles.com/

Collapse -

Complete Solution

by jackadision In reply to Corrupted innodb table cr ...

Restore corrupt or damaged MY SQL database by using its backup, through this way you can repair any types of error. Or use a third party MY SQL Repair Tool, this can restore MY SQL database without need of backup file.

For more information visit: http://mysql.filerepairtool.net/blog/resolve-error-824-sql-server-database

Collapse -

sql database repair software

by kimsharma615 In reply to Corrupted innodb table cr ...

Kernel for SQL Database Recovery Software is best, effective and secure software to solve all types of database corruption issue. Software can use to recover multiple MDF file, triggers, keys, indexes and tables etc. software is supported by all SQL Server version.
Get more features and download free trial version from - http://www.sqlrepair.org/

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums