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?
I just got this one and it was due to the fact that the new folder on the SSD drive where I wanted the new table to go was created under root and mysql runs under the mysql user. So cd to your data folder chown mysql . and it solves the problem.
You also get this error, if your file system is full.
Just modify to
It works to me.
try repair table (ISAM engine)
if its innodb engine look at this link :
http://www.mysqlperformanceblog.com/2008/07/04/recovering-innodb-table-corruption/
FIXED!! check your memory by
df -h
. also check inodesdf -i
. if its full, delete some files.Find the value of
innodb_force_recovery
at/etc/mysql/my.cnf
(for linux). if it is 0, remove it or comment it out.Example
change it to:
Reference: