The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
There may well be, but none that I know of.
|
#3
|
||||
|
||||
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 SELECT * FROM source_db.user; 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
|
#4
|
||||
|
||||
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 .
|
#6
|
|||
|
|||
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? |
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
Thanks Sir Adrian but wouldn't need some form of connection string not just the name but username and password as well?
|
#9
|
||||
|
||||
No, the database user that you access the DB with just needs to have permissions to the other DB.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|