1025
ER_ERROR_ON_RENAME
#define ER_ERROR_ON_RENAME 1025Got this when I was attempted to alter an existing table that had foreign keys. Apparently when you alter a table - it creates a new temporary table and does a quick swap of the existing table for the new one. But if the existing table has dependencies - it wont work.