Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Accessing a secondary DB from within SS

Go to End

2 Posts   976 Views


Community Member, 101 Posts

6 October 2010 at 9:21am

Hi All

I am trying to pull resources from a secondary database into a SilverStripe site.

Here is my case;

The first will contain SS install (SS_db) and the other one (work_db) will contain data like high resolution images, maps, Google map panoramas etc. The idea here is to separate the two as I want work_db to be independent of SS in all ways possible as I want the same resources to be accessed by other systems as well.

My SS site is running but i cant find a way of connecting to my work_db to pull resources from there.
I am coming from a none SS site and this works fine, I can connect to as many external databases as I want.

Is there a way I can do this using SS.

All help will be appreciated




Community Member, 902 Posts

7 October 2010 at 12:51am

Replied in another thread with a solution that worked for me: