Use one SQL Database for Multiple Programs... :)

John Klyne

Community Advocate
Community Support
Messages
964
Reaction score
7
Points
18
...I am wondering if anyone has tried such thing? Does anyone know if something like this would work...?

I am trying to come up with a system that would enable one database to be used for more than just one program a, database requiring sites, such as, hosting... phpbb forums, joomla, advertising site, and whatever else you can think of, all on one database.

I am not sure if what I have said, makes sense but anyone able to enlighten me a little?
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
It works fine, I use WP and phpBB and my own custom stuff in the same database :)

~Callum
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
if yo can set a tableprefix in the application it should work. If you can't, then you have to edit the script yourself to use a unique prefix
 

John Klyne

Community Advocate
Community Support
Messages
964
Reaction score
7
Points
18
Editing the script myself is not an option for my capabilities heh...

What do you mean, tableprefix...


Callum- Didn't know it would work heh :) Thanks for verifying.

Again, I appreciate the help you both have given, thank you.
From John Klyne.
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Editing the script myself is not an option for my capabilities heh...

What do you mean, tableprefix...


Callum- Didn't know it would work heh :) Thanks for verifying.

Again, I appreciate the help you both have given, thank you.
From John Klyne.

scriptname_tablename instead of tablename

like phpbb_users or wp_posts
 

John Klyne

Community Advocate
Community Support
Messages
964
Reaction score
7
Points
18
Ahh I see, ..for scriptname, where would I derive what to input for such strings.
 

ChatIndia

Community Advocate
Community Support
Messages
1,408
Reaction score
30
Points
48
yeah it works cause vb4 uses only a single db for both its blog and forum. i was also wondering how to do that. thanks for bringing up this topic.
 

John Klyne

Community Advocate
Community Support
Messages
964
Reaction score
7
Points
18
: )

Thanks viggie and Alex...helps me a lot.
 
Last edited:

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
Ahh I see, ..for scriptname, where would I derive what to input for such strings.

What do you mean?

If you mean what should you use a prefix, it really doesn't matter, but generally it's best to use something descriptive like wp_ for wordpress or vb_ for vBulletin

~Callum

~Callum
 

nandifamily

Member
Messages
174
Reaction score
2
Points
18
when u install a script. u may see a table prefix field on the installation page. just pay attention to that.
 

Sharky

Community Paragon
Community Support
Messages
4,399
Reaction score
94
Points
48
To clarify , the prefix is only used so different packages don't try and use the same table.
 

John Klyne

Community Advocate
Community Support
Messages
964
Reaction score
7
Points
18
Yea I kind of figured Sharky...nandi family, will do thankyou for your help.
 
Top