Topic: Dinamic change of mysql database

Hello,

The file database.yml contain the database name, user, host and passwd. Well,

my application have to change the database to use on fly.

Example:

http://demo.mydomain.com

The aplicaton first auto connect to the database master ( get de user "demo.mydomain.com" and the password for demo.mydomain.com ) and after connect with the database demo.mydomain.com.

Since one becomes ?

Thanks and sorry for my horribilus english.

Re: Dinamic change of mysql database

This might help you: http://programmerassist.com/article/302

You can have active_record manage multiple databases.