1

How to create multiple databases for the multiple themes installed in sites/all/themes/.

  • Why do you want to create multiple databases? Normally, there is no reason to do this in Drupal. – Patrick Kenny Jan 22 '13 at 10:29
  • Furthermore, it is not necessary to have multiple databases for multiple themes. Multiple databases are used for a different purpose. – apaderno Jan 22 '13 at 19:52

1 Answers1

1

I'm pretty sure you should start by reading the copious comments in the settings.php file for multiple databases, db table prefixing & even target db fallback. The db stanzas start on line 53, so it's not like it's even buried. ;-)

(It's worth noting however that Drupal's db prefixing isn't designed to scale as you add more prefixes!)

Having said that, I would suggest carefully considering your reasons for wanting to use multiple databases. As Patrick points out, that's not necessary in Drupal for multiple themes, and you are adding a layer of complexity that you should make sure you really need-- for most cases this seems like it would be an anti-pattern.

Forest
  • 808
  • 6
  • 9