Wat is er fout aan deze SQL-querty?

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Wat is er fout aan deze SQL-querty?

Bericht door RobinTown » 16 mar 2004, 16:31

Code: Selecteer alles

CREATE TABLE phpbb_notes (
  post_id mediumint(8) unsigned NOT NULL auto_increment,
  poster_id mediumint(8) NOT NULL DEFAULT '0',
  post_subject varchar(60) DEFAULT NULL,
  post_text text,
  post_time int(11) NOT NULL DEFAULT '0',
  bbcode_uid varchar(10) DEFAULT NULL,
  bbcode` TINYINT(1) DEFAULT '1' NOT NULL,
  smilies` TINYINT(1) DEFAULT '1' NOT NULL,
  acronym` TINYINT(1) DEFAULT '1' NOT NULL
  PRIMARY KEY  (post_id),
  KEY poster_id (poster_id),
  KEY post_time (post_time)
) TYPE=MyISAM;

INSERT INTO phpbb_config ( config_name , config_value ) VALUES ('notes', '20');

ALTER TABLE phpbb_users ADD user_popup_notes TINYINT(1) DEFAULT '0';

van Personal Notes

Gebruikersavatar
Cheeta
Berichten: 1165
Lid geworden op: 11 jan 2004, 11:26
Locatie: Mijdrecht Sites: -- Derbi Club --
Contacteer:

Re: Wat is er fout aan deze SQL-querty?

Bericht door Cheeta » 16 mar 2004, 16:38

Code: Selecteer alles

CREATE TABLE phpbb_notes
  post_id mediumint(8) unsigned NOT NULL auto_increment,
  poster_id mediumint(8) NOT NULL DEFAULT '0',
  post_subject varchar(60) DEFAULT NULL,
  post_text text,
  post_time int(11) NOT NULL DEFAULT '0',
  bbcode_uid varchar(10) DEFAULT NULL,
  bbcode` TINYINT(1) DEFAULT '1' NOT NULL,
  smilies` TINYINT(1) DEFAULT '1' NOT NULL,
  acronym` TINYINT(1) DEFAULT '1' NOT NULL
  PRIMARY KEY  (post_id),
  KEY poster_id (poster_id),
  KEY post_time (post_time)
) TYPE=MyISAM;
probeer hem zo eens!
Don't mess with BD and save the Cheeta's!

RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Bericht door RobinTown » 16 mar 2004, 16:42

dat krijg ik dit
Fout

Er schijnt een fout te zijn in uw SQL query. Mocht de MySQL server een error hebben terug gegeven, probeer dan of uw hiermee uw fout kunt oplossen.

ERROR: Quote niet afgesloten @ 374
STR: `
SQL: CREATE TABLE phpbb_notes
post_id mediumint(8) unsigned NOT NULL auto_increment,
poster_id mediumint(8) NOT NULL DEFAULT '0',
post_subject varchar(60) DEFAULT NULL,
post_text text,
post_time int(11) NOT NULL DEFAULT '0',
bbcode_uid varchar(10) DEFAULT NULL,
bbcode` TINYINT(1) DEFAULT '1' NOT NULL,
smilies` TINYINT(1) DEFAULT '1' NOT NULL,
acronym` TINYINT(1) DEFAULT '1' NOT NULL
PRIMARY KEY (post_id),
KEY poster_id (poster_id),
KEY post_time (post_time)
) TYPE=MyISAM;
SQL-query :

CREATE TABLE phpbb_notes post_id mediumint(8) unsigned NOT NULL auto_increment, poster_id mediumint(8) NOT NULL DEFAULT '0', post_subject varchar(60) DEFAULT NULL, post_text text, post_time int(11) NOT NULL DEFAULT '0', bbcode_uid varchar(10) DEFAULT NULL, bbcode` TINYINT(1) DEFAULT '1' NOT NULL, smilies` TINYINT(1) DEFAULT '1' NOT NULL, acronym` TINYINT(1) DEFAULT '1' NOT NULL PRIMARY KEY (post_id), KEY poster_id (poster_id), KEY post_time (post_time) ) TYPE=MyISAM;

MySQL retourneerde:


#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 'post_id mediumint(8) unsigned NOT NULL auto_increment,
poste

[Documentatie] · [Terug]

Gebruikersavatar
Cheeta
Berichten: 1165
Lid geworden op: 11 jan 2004, 11:26
Locatie: Mijdrecht Sites: -- Derbi Club --
Contacteer:

Bericht door Cheeta » 16 mar 2004, 16:44

Code: Selecteer alles

You have an error in your SQL syntax near 'post_id mediumint(8) unsigned NOT NULL DEFAULT auto_increment, 
  poster_id med' at line 2
dit krijg ik regel 2 dus!

ik ga ff verder proberen nog!

mzzl 8)
Don't mess with BD and save the Cheeta's!

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 16 mar 2004, 16:50

Code: Selecteer alles

CREATE TABLE phpbb_notes ( 
  post_id mediumint(8) unsigned NOT NULL auto_increment, 
  poster_id mediumint(8) NOT NULL DEFAULT '0', 
  post_subject varchar(60) DEFAULT NULL, 
  post_text text, 
  post_time int(11) NOT NULL DEFAULT '0', 
  bbcode_uid varchar(10) DEFAULT NULL, 
  bbcode TINYINT(1) DEFAULT '1' NOT NULL, 
  smilies TINYINT(1) DEFAULT '1' NOT NULL, 
  acronym TINYINT(1) DEFAULT '1' NOT NULL, 
  PRIMARY KEY  (post_id), 
  KEY poster_id (poster_id), 
  KEY post_time (post_time) 
) TYPE=MyISAM; 

INSERT INTO phpbb_config ( config_name , config_value ) VALUES ('notes', '20'); 

ALTER TABLE phpbb_users ADD user_popup_notes TINYINT(1) DEFAULT '0';
Zo moet lukken
Afbeelding

Gebruikersavatar
Cheeta
Berichten: 1165
Lid geworden op: 11 jan 2004, 11:26
Locatie: Mijdrecht Sites: -- Derbi Club --
Contacteer:

Bericht door Cheeta » 16 mar 2004, 16:50

ik heb de mod ook maar ff gedownload en zag er dit bij zitten

http://members.lycos.nl/cheetaforum/db_update_pn.txt

je moet hem alleen ff omzetten in php!
Gewoon met kladblok!

mzzl 8)
Don't mess with BD and save the Cheeta's!

RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Bericht door RobinTown » 16 mar 2004, 16:52

o ja, *beep*, er staat een db_update bij, ik ga die eerst proberen

RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Bericht door RobinTown » 16 mar 2004, 16:53

die lukt ook niet :(
CREATE TABLE phpbb_notes ( post_id mediumint(8) unsigned NOT NULL auto_increment, poster_id mediumint(8) NOT NULL DEFAULT '0', post_subject varchar(60) DEFAULT NULL, post_text text, post_time int(11) NOT NULL DEFAULT '0', bbcode_uid varchar(10) DEFAULT NULL, bbcode` TINYINT(1) DEFAULT '1' NOT NULL, smilies` TINYINT(1) DEFAULT '1' NOT NULL, acronym` TINYINT(1) DEFAULT '1' NOT NULL PRIMARY KEY (post_id), KEY poster_id (poster_id), KEY post_time (post_time) ) TYPE=MyISAM
+++ Error: 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 ' TINYINT(1) DEFAULT '1' NOT NULL, smilies` TINYINT(1) DEFAULT

INSERT INTO phpbb_config ( config_name , config_value ) VALUES ('notes', '20')
+++ Error: Duplicate entry 'notes' for key 1

ALTER TABLE phpbb_users ADD user_popup_notes TINYINT(1) DEFAULT '0'
+++ Error: Duplicate column name 'user_popup_notes'

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 16 mar 2004, 16:54

Heb je die van mij ook geprobeerd? De tabel aanmaken lukt mezelf wel, dat aanpassen heb ik niet geprobeerd.
Afbeelding

RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Bericht door RobinTown » 16 mar 2004, 16:56

Luuk schreef:Heb je die van mij ook geprobeerd? De tabel aanmaken lukt mezelf wel, dat aanpassen heb ik niet geprobeerd.
het is gelukt, als ik nog meer fouten krijg meld ik het

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 16 mar 2004, 16:57

OK :wink:
Afbeelding

RobinTown
Berichten: 726
Lid geworden op: 17 jan 2004, 17:28
Contacteer:

Bericht door RobinTown » 16 mar 2004, 17:19

oke, alles is gelukt. Wat is eigenlijk een goede nederlandse naam voor ''notes''

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 16 mar 2004, 17:20

Notities of aantekeningen.

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 16 mar 2004, 18:37

Of Kladblok. Zo heb ik mijn notes mod naar het Nederlands vertaald.

Gesloten