ok neues Problem:
ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ,
CONSTRAINT `landattacker`
FOREIGN KEY (`attacker` )
REFERENCES `Br' at line 20
-- -----------------------------------------------------
-- Table `Browsergame 1. Version`.`Landbattles`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `Browsergame 1. Version`.`Landbattles` (
`idLandbattles` INT NOT NULL ,
`attacker` INT NULL ,
`defender` INT NULL ,
`time` TIME NULL ,
`attackerarmy` INT NULL ,
`defenderarmy` INT NULL ,
`defenderdefeat` TINYINT(1) NULL DEFAULT NULL ,
`eventid` INT NULL ,
`eventsystem` INT NULL ,
PRIMARY KEY (`idLandbattles`) ,
INDEX `landattacker` (`attacker` ASC) ,
INDEX `landdefender` (`defender` ASC) ,
INDEX `attackerarmy` (`attackerarmy` ASC) ,
INDEX `defenderarmy` (`defenderarmy` ASC) ,
INDEX `eventid` (`eventid` ASC) ,
INDEX `eventsystemid` () ,
CONSTRAINT `landattacker`
FOREIGN KEY (`attacker` )
REFERENCES `Browsergame 1. Version`.`Player` (`id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `landdefender`
FOREIGN KEY (`defender` )
REFERENCES `Browsergame 1. Version`.`Player` (`id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `attackerarmy`
FOREIGN KEY (`attackerarmy` )
REFERENCES `Browsergame 1. Version`.`Army` (`idarmy` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `defenderarmy`
FOREIGN KEY (`defenderarmy` )
REFERENCES `Browsergame 1. Version`.`Army` (`idarmy` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `eventid`
FOREIGN KEY (`eventid` )
REFERENCES `Browsergame 1. Version`.`EventsforPlayer` (`idEvents` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `eventsystemid`
FOREIGN KEY ()
REFERENCES `Browsergame 1. Version`.`Systemevents` ()
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
Ich find keinen Syntax-Fehler...ist mir irgendwo ein Fehler unterlaufen??