此错误的原因可能是什么?
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”(错误号:150)