このエラーの理由は何でしょうか?
CREATE TABLE IF NOT EXISTS `myhotel`.`roomer` (
`id` INT NOT NULL ,
`name` VARCHAR(45) NOT NULL ,
`start` DATE NOT NULL ,
`finish` DATE NOT NULL ,
`day` INT NOT NULL ,
PRIMARY KEY (`id`) ,
INDEX `fk_id` (`id` ASC) ,
CONSTRAINT `fk_id`
FOREIGN KEY (`id` )
REFERENCES `myhotel`.`all_roomers` (`id_roomer` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS `myhotel`.`all_roomers` (
`id_roomer` INT NOT NULL ,
`id_room` INT NOT NULL ,
`status` TINYINT(1) NOT NULL ,
INDEX `fk_id_room` (`id_room` ASC) ,
PRIMARY KEY (`id_roomer`, `id_room`) ,
CONSTRAINT `fk_id_room`
FOREIGN KEY (`id_room` )
REFERENCES `myhotel`.`room` (`id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS `myhotel`.`room` (
`id` INT NOT NULL AUTO_INCREMENT ,
`number` INT NOT NULL ,
`price` INT NOT NULL ,
`capacity` INT NOT NULL ,
`stars` INT NOT NULL ,
`status` TINYINT(1) NOT NULL ,
PRIMARY KEY (`id`) )
ENGINE = InnoDB;
私が得るエラーは次のとおりです:サーバーでSQLスクリプトを実行しています
エラー:エラー1005:テーブル'myhotel.roomer'を作成できません(errno:150)