[Help] How we can connect any database from asterisk

Hi All,
I want to know that how i can connect any DBMS from asterisk if asterisk and dbms is on same machine.and if asterisk is on one machine and any dbms is on another machine then how i can connect the asterisk from the dbms. plz give me solution of this problem.

What are you trying to attach to the RDBMS for? Realtime configuration, logging CDRs, custom data gathering/logging, etc?

In the meantime, have a look here:

voip-info.org/wiki/view/Aste … m+database
voip-info.org/wiki/view/Aste … l+database

Which DBMS are you attempting to connect to?