09-03-2018, 03:12 PM
Yes. So if both dbs use the same credentials (as in same username, same host, same password), you can just do
$db1 = DB::getDB(['db1name']);
$db2 = DB::getDB(['db2name']);
Then use them as you would the regular db. If you have a different configuration, let me know and we can figure it out.
Note that this feature is part of 4.4 and I'm not 100% sure if I pushed it out on the latest 4.3 release, so if that doesn't work, just replace users/classes/DB.php with https://pastebin.com/enb0zaGt
$db1 = DB::getDB(['db1name']);
$db2 = DB::getDB(['db2name']);
Then use them as you would the regular db. If you have a different configuration, let me know and we can figure it out.
Note that this feature is part of 4.4 and I'm not 100% sure if I pushed it out on the latest 4.3 release, so if that doesn't work, just replace users/classes/DB.php with https://pastebin.com/enb0zaGt