CREATE TABLE forum (
id_forum INT NOT NULL,
intitule_forum VARCHAR(200),
PRIMARY KEY (id_forum))
TYPE = InnoDB;
CREATE TABLE thread (
id_thread INT NOT NULL,
id_forum INT NOT NULL,
PRIMARY KEY (id_thread),
FOREIGN KEY (id_forum) REFERENCES forum(id_forum))
TYPE = InnoDB;
ERROR 1005: Can't create table '.\forum\thread.frm' (errno: 150)
sous mysql4 je comprends pas ...