In this example, the standard options from Zend_Db::factory()
are set and the registry key to set the adapter instance to is set to "Db-1".
From the application you can retrieve the object via $db = Zend_Registry::get('Db-1').
This connection inherits all configs from the "default_config" element.
<?xml version="1.0" encoding="UTF-8"?>
<adapter>PDO_MYSQL</adapter>
<dbname>my_app</dbname>
<host>10.10.10.2</host>
<username>foo</username>
<password>bar</password>
<registry>
<key>Db-1</key>
</registry>