Sixty Posted June 14, 2003 Share Posted June 14, 2003 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 thanks Sixty Quote Link to comment https://forums.phpfreaks.com/topic/589-getting-this-error-when-i-try-add-to-a-database/ Share on other sites More sharing options...
effigy Posted June 14, 2003 Share Posted June 14, 2003 i\'m guessing a default is not needed for an auto_increment field Quote Link to comment https://forums.phpfreaks.com/topic/589-getting-this-error-when-i-try-add-to-a-database/#findComment-1974 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.