In MySql, I had the same problem as this
thread starter. What solved it for me was including the database name, i.e, for example:
alter table myDb.studentscores_tbl drop foreign key studentid;
A clue is in the:
"Error on rename of '.\test\studentscores_tbl' to '.\test\#sql2-68c-1fe' (errno: 152)"
There is no database name ahead of the "."'s.
Hope that solves your problem as well.
Ben