PDA

View Full Version : multiple databases question


c4smok
30 Jul 2008, 01:59
I currently run vbulletin forums with other services linked in to the same database. But it has started to become really hard to manage.. around over 200+ tables..

I was wondering if there was a way I could put my services into another database and still use the plug-in system to have them linked into the forums for all the connections and vars. My current system I have one database with my services in tables of one database..

Thanks for reading, looking for a clean way to do this like a plugin on start or something.

Thank you for your time,
c4smok

Dismounted
30 Jul 2008, 07:50
As long as the MySQL user for vBulletin has access to the other database, you can use the standard MySQL "database.table" syntax.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

c4smok
30 Jul 2008, 23:19
I seem to be getting a database error for the forum system when I try to use that.


This is the current code I use to bring over vars from other tables in the same database.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This is the changes I made based on your advice which I may not be doing correctly. The user for both databases have the same access also.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



The Error msg


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Thanks for your time again,
c4smok

MoT3rror
31 Jul 2008, 04:11
Try mysite_database2.table_servusers with the `.

c4smok
31 Jul 2008, 04:41
its working =)

your great

thanks,
c4