MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 26th, 2005, 06:51 AM
windborn windborn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 2 windborn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 40 sec
Reputation Power: 0
MySql Error 1075

Greetings,

I was installing a mod for my phpbb forum, and one of the instructions said:

Quote:
CREATE TABLE phpbb_canned (
canned_id mediumint(8) unsigned NOT NULL auto_increment,
group_id mediumint(8) unsigned NOT NULL default '0',
canned_title varchar(100) NOT NULL default '',
canned_message text NOT NULL,
canned_enable_bbcode tinyint(1) NOT NULL default '0',
canned_move_after_post tinyint(1) NOT NULL default '0',
canned_lock_after_post tinyint(1) NOT NULL default '0',
sortorder smallint(4) NOT NULL default '0',
PRIMARY KEY (canned_id),
KEY group_id (group_id)
) TYPE=MyISAM;


After doing all that, I get this error when I try to save:

Quote:
#1075 - Incorrect table definition; There can only be one auto column and it must be defined as a key


What am I doing wrong?

Reply With Quote
  #2  
Old February 28th, 2005, 09:55 AM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Try it this way:
PHP Code:
 DROP TABLE IF EXISTS phpbb_canned;
CREATE TABLE phpbb_canned (
canned_id mediumint(8unsigned NOT NULL auto_increment,
group_id mediumint(8unsigned NOT NULL default '0',
canned_title varchar(100NOT NULL default '',
canned_message text NOT NULL,
canned_enable_bbcode tinyint(1NOT NULL default '0',
canned_move_after_post tinyint(1NOT NULL default '0',
canned_lock_after_post tinyint(1NOT NULL default '0',
sortorder smallint(4NOT NULL default '0',
PRIMARY KEY (canned_id),
KEY group_id (group_id)
TYPE=MyISAM
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > MySql Error 1075


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway