Mysql error 1064 ошибка в внешнем ключе — что это?
Пытаюсь синхронизировать модель из mysql workbanch на локальный сервер. Выдает ошибку -
Executing SQL script in server
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 'VISIBLE,
CONSTRAINT `fk_comment_user`
FOREIGN KEY (`iduser`)
REFERENCE' at line 6
SQL Code:
CREATE TABLE IF NOT EXISTS `cpa`.`comment` (
`idcomment` INT(11) NOT NULL AUTO_INCREMENT,
`commentcol` VARCHAR(45) NOT NULL,
`iduser` INT(11) NOT NULL,
PRIMARY KEY (`idcomment`),
INDEX `fk_comment_user_idx` (`iduser` ASC) VISIBLE,
CONSTRAINT `fk_comment_user`
FOREIGN KEY (`iduser`)
REFERENCES `cpa`.`user` (`iduser`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8