+ Reply to Thread
Results 1 to 8 of 8

Thread: Im such a idiot

  1. #1
    coolv1994 is offline x10 Elder coolv1994 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    506

    Im such a idiot

    I feel really stupid right now because on my forum i just realized that i forgot to put on a prefix for about 130 tables of data. But are prefixes important?:dunno::nuts:

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Im such a idiot

    Depends - is anything else using that database besides the forum?


    If no, then not really. All I can see the prefixes being nice for are people who have 1 database - you'd want prefixes on the tables so any other php/mysql stuff running on that database don't end up with conflicting table names (such as a front-page having the table user, and the forum having the table user - it can be done, but it'd be nasty if you installed a forum over that table).

    If yes, you might wanna try and fix it unless you're damn sure nothing else on that database will ever use a table that has the same name as the forum - CMS's and Forums don't play nice together for instance.



    A way around that though is if you install something later, make sure to give it a prefix. That way the forum could have a table labeled "user," and your CMS might have the table "joomla_user"


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    tittat's Avatar
    tittat is offline x10 Spammer tittat is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kerala,India
    Posts
    2,479

    Re: Im such a idiot

    but it is always better to have prefix..so that you may use mor than one forums etc on a single database....
    PLAY ONLINE GAMES
    WWW.TMONDO.COM PlayFar Flash Games
    Former X10 Forum Senior Moderator(Retired)


  4. #4
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Im such a idiot

    Quote Originally Posted by tittat View Post
    but it is always better to have prefix..so that you may use mor than one forums etc on a single database....
    That's true, but at the same time he could still have more than one, so long as the REST have prefix's.

    It's just gunna be a nightmare for organization


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  5. #5
    coolv1994 is offline x10 Elder coolv1994 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    506

    Re: Im such a idiot

    So far I have just a forum on that database but is there a way to add prefixes?

  6. #6
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Im such a idiot

    yeah, i think you can just mass edit all the table names. or export the database, change the table names, and import it again.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  7. #7
    nexhunter's Avatar
    nexhunter is offline x10 Sophmore nexhunter is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    millbury,massachusetts
    Posts
    239

    Re: Im such a idiot

    it would be wise to edit and add the prefixes but then you'll have to make sure your scripts code look for the new tables names not the old names.
    Last edited by nexhunter; 01-21-2008 at 01:47 PM.



  8. #8
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Im such a idiot

    Quote Originally Posted by nexhunter View Post
    it would be wise to edit and add the prefixes but then you'll have to make sure your scripts code look for the new tables names not the old names.
    That should be somewhere in the configuration too


    It's definitely wiser to do the mass-edit though - pretty damn sure if you did a backup of the database, that it'd take the table names with it - reinstalling it would work just fine, but as soon as you tried to import the backup, it'd either re-create the useless tables, or it'd throw errors for trying to insert data into non-existent ones.

    Better off editing and updating configuration like nexhunter's suggesting.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

+ Reply to Thread

Similar Threads

  1. E-mail Idiot
    By Brandon in forum Off Topic
    Replies: 8
    Last Post: 02-16-2007, 09:08 AM
  2. hi everybody this is idiot
    By idiot in forum Introductions
    Replies: 2
    Last Post: 06-05-2006, 12:50 PM

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