I use MySQL Workbench Community Edition to set up my databases before I create them. I just finished my setup and I am trying to build the tables. So far I have successfully created all of my tables and routines except for two of them, my `Planets` table and my `Designs` table. The following is the only error that I get (in this form, I am unable to click the link):
This is the SQL code for my planets table:#1005 - Can't create table './jkor99_global/Designs.frm' (errno: 150) (<a href="server_engines.php?engine=InnoDB&page=St atus&token=e924f07e856b07a28daed6a39edc1e87">D etails...</a>)
This is the code for my designs table:Code:CREATE TABLE IF NOT EXISTS `Planets` ( `PlanetID` INT UNSIGNED NOT NULL AUTO_INCREMENT , `PlanetDisplayNumb` INT NOT NULL , `SolarSystem` INT NOT NULL , `XCoord` INT NOT NULL , `YCoord` INT NOT NULL , `ZCoord` INT NOT NULL , PRIMARY KEY (`PlanetID`) , UNIQUE INDEX `LocationUnique` (`XCoord` ASC, `YCoord` ASC, `ZCoord` ASC, `SolarSystem` ASC) , UNIQUE INDEX `DispNameUnique` (`PlanetDisplayNumb` ASC, `SolarSystem` ASC) , INDEX `fk_Planets_SolarSystems1` (`SolarSystem` ASC) , CONSTRAINT `fk_Planets_SolarSystems1` FOREIGN KEY (`SolarSystem` ) REFERENCES `SolarSystems` (`SSID` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB;
Code:CREATE TABLE IF NOT EXISTS `Designs` ( `DesignID` INT UNSIGNED NOT NULL AUTO_INCREMENT , `Hull` INT NOT NULL , `Modules` VARCHAR(255) NOT NULL , `Description` MEDIUMTEXT NOT NULL , PRIMARY KEY (`DesignID`) , INDEX `fk_Designs_Hulls` (`Hull` ASC) , UNIQUE INDEX `DesignUniqueness` (`Hull` ASC, `Modules` ASC) , CONSTRAINT `fk_Designs_Hulls` FOREIGN KEY (`Hull` ) REFERENCES `Hulls` (`HullID` ) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB;
Any ideas?


LinkBack URL
About LinkBacks
Reply With Quote

