User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 373,930 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,245 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 7835 | Replies: 0
Reply
Join Date: Jul 2004
Posts: 1
Reputation: kevin29 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kevin29 kevin29 is offline Offline
Newbie Poster

MySQL newbie need help with create table definitons syntax

  #1  
Jul 17th, 2004
I am extremely new to MySQL and web databse programming. I am runnning an Invision Board forum and have had numerous problems when installing mods (I know, install at my own risk, blah blah blah). My question is this: I am restoring the SQL database (I did make a backup; I'm not completely stupid), and I am trying to restore it (all the table are in parts). I came to the ibf_posts table (name of table is irrelevant) and am trying to make it create the table on my new database.

CREATE TABLE ibf_posts (
pid int(10) NOT NULL default "" auto_increment,
append_edit tinyint(1),
edit_time int(10),
author_id mediumint(8) NOT NULL default "0",
author_name varchar(32),
use_sig tinyint(1) NOT NULL default "0",
use_emo tinyint(1) NOT NULL default "0",
ip_address varchar(16) NOT NULL default "",
post_date int(10),
icon_id smallint(3),
post text, - Here's my problem: I didn't change this line; it worked fine in the old DB, so what's wrong with my syntax
queued tinyint(1),
topic_id int(10) NOT NULL default "0",
forum_id smallint(5) NOT NULL default "0",
attach_id varchar(64),
attach_hits int(10),
attach_type varchar(128),
attach_file varchar(255),
post_title varchar(255),
new_topic tinyint(1),
edit_name varchar(255),
PRIMARY KEY (pid),
UNIQUE topic_id (topic_id,author_id),
UNIQUE author_id (author_id),
UNIQUE forum_id (forum_id,post_date),
UNIQUE post (post)
);
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 5:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC