I'm having the same problem in all databases. I have a database created with the following lines
create database nova;
create table estado(
id int primary key auto_increment,
nome varchar(20)
);
create table pessoa(
id int primary key auto_increment,
nome varchar(20),
estado int,
foreign key (estado) references estado(id)
);
And I want to delete the state field in the person table, I get the following errors when executing the following lines:
alter table pessoa drop estado
1553 - Can not drop index 'StatusAutall': needed in a foreign key constraint
ALTER TABLE pessoa DROP INDEX estado;
ALTER TABLE pessoa DROP COLUMN estado
1553 - Can not drop index 'state': needed in a foreign key constraint
set FOREIGN_KEY_CHECKS=0;
alter table pessoa drop estado