The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am in the process of developing a plugin to access data from a DB outside of vBulletin's database, yet still on the same mySQL server. Normally, this can be done in mySQL by formatting the query as follows:
Code:
SELECT table1.foo FROM db1.table1 WHERE table1.foo='bar'; Code:
Database error in vBulletin 3.6.2: Invalid SQL: SELECT table1.foo FROM db1.table1 where table1.foo='bar'; MySQL Error : Table 'db1.table1' doesn't exist Error Number : 1146 ![]() |
#2
|
||||
|
||||
![]()
Maybe database user set in vbulletin config is not allowed to access db1?
|
#3
|
|||
|
|||
![]()
Thanks for the reply CyberAlien. I found my issue. For some reason vB threw the error in my example because I didn't also use the identifier for the SELECT. It's now working as:
Code:
SELECT db1.table1.foo FROM db1.table1 WHERE db1.table1.foo='bar'; |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|