Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR 1025 (HY000): Error on rename of .. (errno: -1)

I am using Oracle MySQL 5.0.88 in CentOS 5.7 (64-bit). When i am trying to create an index to the tables means it shows

mysql> CREATE INDEX activity_type_id ON activity_log (activity_type_id); ERROR 1025 (HY000): Error on rename of './sample_production/activity_log' to './sample_production/#sql2-665c-7' (errno: -1)

it's some what difficult to search with the error number. Please help me out why this error happens.

like image 605
Bathakarai Avatar asked Jan 28 '26 19:01

Bathakarai


1 Answers

According to this the problem may be related to innodb_force_recovery setting.

Run this to check if it's set to zero or not:

 SHOW VARIABLES LIKE 'innodb_force_recovery';
like image 172
Sam R. Avatar answered Jan 30 '26 10:01

Sam R.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!