+ Reply to Thread
Results 1 to 3 of 3

Thread: prefix for tables in my database

  1. #1
    uchenna0 is offline x10Hosting Member uchenna0 is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    26

    prefix for tables in my database

    I was installing smf software for forum. When I was filling information for my database, I was asked this question.

    Table prefix
    The prefix for every table in the database. Do not install two forums with the same prefix!
    This value allows for multiple installations in one database.

    I am confused here cos I do not understand what is this table prefix. Please help me out in this issue. Do I need to log into my database and how do I.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: prefix for tables in my database

    Apparently SMF has a set name for their database.
    If you install two forums on the same site, they will both have tables named 'users' , 'comments' etc
    So, to keep them separate in the database you have to give each a prefix.
    If your first install is about cars, use 'car' and you will have tables 'car_users', 'car_comments'
    If your second install is about trees, use 'tree' and you will have tables 'tree_users' , 'tree_comments'

    The software handles everything. Just give them a short 'first name' to use.
    Nothing is always absolutely so.

  3. #3
    recent is offline x10Hosting Member recent is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    1

    Re: prefix for tables in my database

    A table prefix is like a unique name for the set of tables in your database corresponding to a certain script.
    For example, one may have 2 seperate forums on their website (for whatever reason). OBVIOUSLY the users table would have to be used for the forums, so a prefix adds "SMF1_USERS" instead of just "USERS" so that you can have multiple user tables for different purposes.

    and no, you shouldn't need to log into your sql db to config it should be automatic.


    EDIT: ^^^ beat me to it
    Last edited by recent; 04-25-2010 at 11:05 PM. Reason: late post :P

+ Reply to Thread

Similar Threads

  1. Database name/user prefix modification
    By jfromeo in forum Free Hosting
    Replies: 3
    Last Post: 09-13-2009, 11:53 PM
  2. Tables Join Database
    By supersonic in forum Free Hosting
    Replies: 1
    Last Post: 11-17-2008, 04:18 PM
  3. Can you have too many tables in a MySQL database?
    By sclewin in forum Programming Help
    Replies: 8
    Last Post: 03-07-2008, 07:27 AM
  4. Not able to see database tables through PHPMyAdmin 2.11.2
    By xdan78 in forum Computers & Technology
    Replies: 1
    Last Post: 11-15-2007, 07:26 AM
  5. My lost database tables
    By yahia in forum Free Hosting
    Replies: 0
    Last Post: 05-26-2007, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers