![]() |
2 vbulletin dbs bridge?
is there a script/hack out there that bridges two vbulletin databases? i dont want to merge them, i just want to be able to use both of them at the same time.
|
There may well be, but none that I know of.
|
I've created one but the complexity of it is nearly overkill for just synchronizing users.
A simple option (passed my basic proof of concept test) would be using MySQL's new view functionality instead. Absolutely backup first. For every shared table (user, usergroup, userfield, access, etc.) you would need to drop the original table, and then recreate it as a view: Code:
CREATE VIEW user as So, automatically, when vBulletin performs queries on any of these "view" tables, MySQL will simply replace the database/table names so it directly touches the other database. Pros
|
So basically a symbolic link to another database? That's cool, when was it introduced into MySQL, Adrian? I'm afraid I don't really keep up with MySQL :p.
|
Not really new... but new enough for most people not to have it. 5.01, according to the docs.
This isn't really what they were meant for, but hey it works. :up: |
Quote:
I would very much like to test this so any idea what the source_db syntax would be for the user table located in a separate db on the same server? |
I've only tested it in a development environment... never on a production site.
"source_db" is the name of the other database that you want to pull the users from. |
Thanks Sir Adrian but wouldn't need some form of connection string not just the name but username and password as well?
|
No, the database user that you access the DB with just needs to have permissions to the other DB.
|
All times are GMT. The time now is 09:59 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:
|