reto
Erfahrenes Mitglied
Hallo habe wieder einmal ein Problem beim erstellen von Datenbanken in mySQL. Habe ein .sql Skript zum erstellen der Datenbank erhalten, dass aber offenbar Fehler enthält. Ich bekomme von PHPmyAdmin folgende Fehlermeldung zurück:
#1170 - BLOB column 'comment' used in key specification without a key length
Nachfolgend der Inhalt der .sql-Files:
Was ist den mit dem "comment" nicht in Ordnung? Danke schonmal für jede Hilfe!
#1170 - BLOB column 'comment' used in key specification without a key length
Nachfolgend der Inhalt der .sql-Files:
Code:
DROP TABLE IF EXISTS apg_comments;
CREATE TABLE apg_comments (
id int(4) DEFAULT '' NOT NULL auto_increment,
picid int(6) DEFAULT '0' NOT NULL ,
comment text DEFAULT '' NOT NULL ,
membid int(4) ,
stamp bigint(13) DEFAULT '0' NOT NULL ,
val smallint(1) DEFAULT '0' NOT NULL ,
PRIMARY KEY (id),
KEY comment (comment)
);
#
# Table structure for table 'apg_pics'
#
DROP TABLE IF EXISTS apg_pics;
CREATE TABLE apg_pics (
id mediumint(10) DEFAULT '' NOT NULL auto_increment,
filename varchar(255) DEFAULT '' NOT NULL ,
picname varchar(255) DEFAULT '' NOT NULL ,
descr text DEFAULT '' NOT NULL ,
stamp varchar(14) DEFAULT '' NOT NULL ,
catid smallint(4) DEFAULT '0' NOT NULL ,
hits mediumint(6) DEFAULT '0' NOT NULL ,
keywords text DEFAULT '' NOT NULL ,
membid smallint(3) DEFAULT '0' NOT NULL ,
vis smallint(1) DEFAULT '0' NOT NULL ,
hide smallint(1) DEFAULT '0' NOT NULL ,
PRIMARY KEY (id),
KEY descr (descr,keywords,picname),
KEY picname (picname,keywords)
);
Was ist den mit dem "comment" nicht in Ordnung? Danke schonmal für jede Hilfe!