Once you generated your
myproject-conf.php and
myproject-classmap.php, you'll notice and copy and paste them into your app/config-folder you'll maybe want to set user and password for a specific AgaviPropelDatabase.
<?xml version="1.0" encoding="UTF-8"?>
<configurations xmlns="http://agavi.org/agavi/1.0/config">
<configuration environment="development">
<databases default="[strong]mydb[/strong]">
<database name="[strong]mydb[/strong]" class="AgaviPropelDatabase">
<parameter name="config">
%core.app_dir%/config/[strong]myproject[/strong]-conf.php
</parameter>
<parameter name="overrides">
<parameter name="connection">
<dsn>mysql:dbname=[strong]mydb[/strong];host=[strong]localhost[/strong]</dsn>
<parameter name="user">root</parameter>
<parameter name="password"></parameter>
</parameter>
</parameter>
</database>
</databases>
</configuration>
</configurations>
Here you also can change the dns-entry to match different sql servers!
Your runtime-conf.xml for propel looks like that:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<propel>
<datasources default="[strong]mydb[/strong]">
<datasource id="[strong]mydb[/strong]">
<!--
this ID must match <database name="">
in schema.xml
-->
<adapter>mysql</adapter>
<!--
sqlite, mysql, myssql, oracle, or pgsql
-->
<connection>
<dsn>mysql:dbname=[strong]mydb[/strong];host=localhost</dsn>
</connection>
</datasource>
</datasources>
</propel>
</config>