Hola buenas estoy creando una base de datos con mysql pero me tira era este error:
[Err] 1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
[Err] CREATE TABLE `post` (
`idpost` int auto_increment,
`titulo` VARCHAR(150) NOT NULL,
`idservidor` int,
`contenido` varchar(80) NOT NULL,
`fecha` DATE,
`votos` int,
`url` VARCHAR(200)
);
[Msg] Finished - Unsuccessfully
mi codigo es este:
Código MySQL:
Ver original);
);
`usuario`,
`fecha`
);
);
INSERT INTO post
VALUES ('','driftdani','Yo soy de aqui-Don omar','1','4FFFBzXjnqA','20130511','15',''); INSERT INTO post
VALUES ('','keite','Dyland & Lenny - Pégate Más','1','GN4GFqNPwUk','20130511','51',''); INSERT INTO mensajes
VALUES ('','driftdani','ole que wapo esta el video','20130511'); INSERT INTO servidores
VALUES ('','youtube','<iframe width=560 height=315 src=http://www.youtube.com/embed/','frameborder=0 allowfullscreen></iframe>');
esas son mis tablas con algo de contenido para trabajar pero solo me crea la tabla usuario y sus datos el fallo me lo da el resto de tablas, ya no se que hacer.