ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Connect EE2 to multiple databases?

November 14, 2011 4:50pm

Subscribe [2]
  • #1 / Nov 14, 2011 4:50pm

    iPixel

    64 posts

    First off, is this possible?

    the database.php file contains the database name,

    $db['expressionengine']['database'] = "mydatabase";

    Can i somehow pipe databases?

    The reason for this is that i need to run a query that checks when the table was last updated. For that, i need EE to have access to information_schema.tables.

    Anyone have any ideas?

     

  • #2 / Nov 15, 2011 9:40am

    Kevin Smith

    4784 posts

    Hi iPixel,

    ExpressionEngine itself only connects to one database at a time with its native configuration, but it appears that you could write your own EE add-on and give it the ability to connect to a different database than the one used by your EE installation.

    Does the conversation in that thread help get you pointed in the right direction?

  • #3 / Nov 15, 2011 9:55am

    iPixel

    64 posts

    Perfect examples, thank you very much… this will definitely resolve my issue.

  • #4 / Nov 17, 2011 7:21pm

    Kevin Smith

    4784 posts

    No problem! If we can help again in the future, please don’t hesitate to let us know.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases