Welcome Guest, Not a member yet? Register   Sign In
when to use dbprefix
#1

[eluser]bientek[/eluser]
If I want two CI installations to share a table in the same database, should I use dbprefix?

The CI manual refers to dbprefix as
Quote:"An optional table prefix which will added to the table name when running Active Record queries. This permits multiple CodeIgniter installations to share one database."

I am hoping that someone might be able to elaborate on when it is and isn't appropriate to set dbprefix. It appears that multiple CI installations can already access the same DB using the same shared credentials, and I don't know if setting dbprefix is appropriate when multiple CI projects are sharing a table in a DB. My background on MySQL is a bit weak, so this may be the root of my confusion.


Messages In This Thread
when to use dbprefix - by El Forum - 03-16-2012, 08:27 AM
when to use dbprefix - by El Forum - 03-16-2012, 08:34 AM
when to use dbprefix - by El Forum - 03-16-2012, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB