Jump to content


Getting this error when i try add to a database

  • Please log in to reply
1 reply to this topic

#1 Sixty

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 14 June 2003 - 03:08 AM

while installing forums, i get the following error

Invalid SQL: CREATE TABLE adminlog (

   adminlogid int(10) unsigned DEFAULT \'0\' NOT NULL auto_increment,

   userid int(10) unsigned DEFAULT \'0\' NOT NULL,

   dateline int(10) unsigned DEFAULT \'0\' NOT NULL,

   script char(20) NOT NULL,

   action char(20) NOT NULL,

   extrainfo char(200) NOT NULL,

   ipaddress VARCHAR(15) NOT NULL,

   PRIMARY KEY (adminlogid)


mysql error: Invalid default value for \'adminlogid\'

mysql error number: 1067

any advice anyone has would be LOVELY


#2 effigy

  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 14 June 2003 - 04:50 AM

i\'m guessing a default is not needed for an auto_increment field
Regexp | Unicode Article | Letter Database

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users