Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Error Code: 1030Got error -1 from storage engine; I've tried to delete data from my database

I have a database including some tables, when I want to delete data from tables which includes an "Auto Increment" field, using this query:

delete from test.table1 ;

I got this error:

 Error Code: 1030Got error -1 from storage engine

Why this happens? What should I do?

like image 280
rain Avatar asked Nov 01 '10 08:11

rain


2 Answers

Try to change innodb_force_recovery value (in your /etc/my.cnf).

Error -1 says NOTHING. Without your tables creation code (SHOW CREATE TABLE table_name) can not say where exactly problem is.

like image 107
ksogor Avatar answered Sep 18 '22 18:09

ksogor


You also get this error, if your file system is full.

like image 42
ToBe_HH Avatar answered Sep 20 '22 18:09

ToBe_HH