pfleidi85
25.02.05, 17:21
Ich versuch gerade das Lansurfer Intranet-System auf ne aktuelle mySQL Version umzuschreiben, da das System schon sehr alt ist kommt es mit der im aktuellen xampp verwendeten version nicht zurecht. Nur komm ich mit den CreateTable Anweisungen nicht weiter.
Hier mal ein Beispiel Code:
CreateTable("forum_posting", "
id int(11) DEFAULT '0' NOT NULL auto_increment,
date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
text text,
ls_id int(11) DEFAULT '0',
name varchar(100) DEFAULT '0',
email varchar(200) DEFAULT '0',
topic int(11) DEFAULT '0' NOT NULL,
flags int(11) DEFAULT '0',
PRIMARY KEY (id),
KEY date_index (date)
");
Dabei kommt immer folgender Fehler:
MySQL said: Documentation
#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 'CreateTable("forum_posting", "
id int(11) DEFAULT '0' NOT NULL auto_increment' at line 1
Irgendwie hat die Datenbank also was gegen den Default wert. Hat jemand ne Ahnung wie das zu lösen ist?
Hier mal ein Beispiel Code:
CreateTable("forum_posting", "
id int(11) DEFAULT '0' NOT NULL auto_increment,
date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
text text,
ls_id int(11) DEFAULT '0',
name varchar(100) DEFAULT '0',
email varchar(200) DEFAULT '0',
topic int(11) DEFAULT '0' NOT NULL,
flags int(11) DEFAULT '0',
PRIMARY KEY (id),
KEY date_index (date)
");
Dabei kommt immer folgender Fehler:
MySQL said: Documentation
#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 'CreateTable("forum_posting", "
id int(11) DEFAULT '0' NOT NULL auto_increment' at line 1
Irgendwie hat die Datenbank also was gegen den Default wert. Hat jemand ne Ahnung wie das zu lösen ist?