If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Forum Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-10, 14:18
Acute Acute is offline
Registered User
 
Join Date: Apr 2009
Posts: 15
Question Forum Database

Hi everyone,
i'm gonna make a forum site, but i don't know how to design the database. The forum will have categories like social, academic, and etc., so i think that i should create different databases for each category. For example database "Social", database "Academic"; and each time when user starts a new thread, for example in "Social" category, the new table will be created in "Social" database, and this table will have columns "repliers_name", "date", and of course "text". So, it is my idea, however i think it's not the optimal and correct way of designing the database for a forum. Any ideas?

Thnx
Reply With Quote
  #2 (permalink)  
Old 07-03-10, 19:13
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
different databases for each category is wrong

you'll want a table for categories, a table for forums (each forum belongs to only one category), a table for members, a table for threads (each thread belongs to only one forum, and each thread has only on member as thread starter), and a table for posts (each post belongs to only one thread and has only one member as poster)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-03-10, 21:31
Acute Acute is offline
Registered User
 
Join Date: Apr 2009
Posts: 15
Thank you very much, r937@!!! It is the optimal way, isn't it?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On