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:
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:
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!
but it is always better to have prefix..so that you may use mor than one forums etc on a single database....
TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!
So far I have just a forum on that database but is there a way to add prefixes?
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
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.
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!