![]() |
multiple databases question
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 |
As long as the MySQL user for vBulletin has access to the other database, you can use the standard MySQL "database.table" syntax.
[sql]SELECT * FROM database1.tableA[/sql] |
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:
$uservar = $vbulletin->db->query_first(" Code:
$uservar = $vbulletin->db->query_first(" Code:
Invalid SQL: c4smok |
Try mysite_database2.table_servusers with the `.
|
its working =)
your great thanks, c4 |
All times are GMT. The time now is 05:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|