Good Morning,
I’m using MySql Workbench to create some databases of mine and i haven’t had problems since this monday.
Whem i’m “Forward Engeneer”ing my model, all tables are created without problems, except this guy here:
Executing SQL script in server
ERROR: Error 1103: Incorrect table name '1'
CREATE TABLE IF NOT EXISTS `sigemV2`.`macro` (
`MACRO_ID` INT(11) NOT NULL AUTO_INCREMENT ,
`MACRO_ADDRESS` VARCHAR(255) NOT NULL ,
`MACRO_DESCRIPTION` VARCHAR(255) NOT NULL ,
`MACRO_MACRO_KIND_ID` INT(11) NOT NULL ,
PRIMARY KEY (`MACRO_ID`) ,
INDEX `fk_MACRO_MACRO_KIND1_idx` (`MACRO_MACRO_KIND_ID` ASC) ,
CONSTRAINT `MACRO_KIND_ID`
FOREIGN KEY (`MACRO_MACRO_KIND_ID` )
REFERENCES `sigemV2`.`macrokind` (`MACRO_KIND_ID` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8
INDEX DIRECTORY = '1'
I’m pretty used to MySql workbench, but this is drivin me crazy :(.
I tryed also on phpMyAdmin, but i had the same error (1103), but the difference was that phpMyAdmin pointed the problem to the “primary Key (‘MACRO_ID’)” line.
I appreciate your help in advance!
Sam
INDEX DIRECTORY = '1'Index directory must refer to valid directory.