ERROR 1025 (HY000): Error on rename of ‘./TESTDB/ORDERS’ to ‘./TESTDB/#sql2-3b5b-8’
Asked By
0 points
N/A
Posted on - 07/26/2011
![qa-featured](https://www.techyv.com/sites/default/users/superadmin/qa-featured-300x270.png)
I have this code to remove the FOREIGN KEY.
ALTER TABLE ORDERS DROP FOREIGN KEY CUSTOMERID;
When I try to run the code an error message appears:
ERROR 1025 (HY000): Error on rename of './TESTDB/ORDERS' to './TESTDB/#sql2-3b5b-8'
(err no: 152)
What does this message mean. Is my syntax wrong? By the way, I only want to remove the FOREIGN KEY on the CUSTOMERID but don't want any changes for the rest of the database.
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)