I'm using a prefix for my drupal db. I want to connect to additional DBs that are, of course, not using my defined drupal prefix. I see there's a way to define multiple db connections but there's nothing about prefixes. There is a 2-year-old post here that says "drupal assumes the prefix is applied to all db_url connections". Is this still accurate? Is there a patch or something. So we don't have to choose between prefixes and multiple DB usage?

http://drupal.org/node/189911

Comments

yelvington’s picture

In Drupal 6, prefixing is applied uniformly by http://api.drupal.org/api/function/db_prefix_tables/6 when a query is handed to db_query() or db_query_range().

work77’s picture

that helped. thanks.