innodb - Mysql 'Got error -1 from storage engine' error -


i have myism table 'test' holds out-dated data, want recreate table, columns same except changed storage myism innodb. dumped sql used recreate table like:

drop table test; create table test ( ... ) engine=innodb  insert test(...) values(...) 

that's got error "got error -1 storage engine", have googled around, of results focus on corrupted innodb tables. while case don't think it's broken, it's missed @ drop , create statements.

another thing is after executed above sql, that's left table test file named file.frm, guess innodb table needs other stuff run on not sure what.

how can fix problem? , need more tasks of kind, what's correct procedure drop myism table , recreate them innodb ones?

thanks.

ok. found solution. issue caused innodb_force_recovery parameter in my.cnf, set 4.

to solve problem, set 0 or remove parameter my.cnf

if check error log, during query, mysql write in human readable language that: won't let change in table until innodb recovery mode enabled, next message:

innodb: new raw disk partition initialized or innodb: innodb_force_recovery on: not allow innodb: database modifications user. shut down innodb: mysqld , edit my.cnf newraw replaced innodb: raw, , innodb_force_... removed. 

please refer to: http://bugs.mysql.com/bug.php?id=30225


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -