Skip to content

Instantly share code, notes, and snippets.

@dominikzogg
Created March 17, 2012 21:45
Show Gist options
  • Save dominikzogg/2065573 to your computer and use it in GitHub Desktop.
Save dominikzogg/2065573 to your computer and use it in GitHub Desktop.
PropelException: No connection information in your runtime configuration file for datasource ...
<?xml version="1.0" encoding="UTF-8"?>
<config>
<propel>
<datasources default="silextest">
<datasource id="silextest">
<adapter>mysql</adapter> <!-- sqlite, mysql, mssql, oracle, or pgsql -->
<connection>
<dsn>mysql:host=localhost;dbname=silextest</dsn>
<user>root</user>
<password>root</password>
<options>
<option id="ATTR_PERSISTENT">false</option>
</options>
<attributes>
<option id="ATTR_ERRMODE">PDO::ERRMODE_WARNING</option>
<option id="ATTR_EMULATE_PREPARES">true</option>
</attributes>
<settings>
<setting id="charset">utf8</setting>
</settings>
</connection>
</datasource>
</datasources>
</propel>
</config>
@kirankotari
Copy link

hi I am having these errors in propel can you help me

Fatal error: Uncaught exception 'PropelException' with message 'No connection information in your runtime configuration file for datasource [relations]' in C:\wamp\www\relations\propel\runtime\lib\Propel.php on line 573

PropelException: No connection information in your runtime configuration file for datasource [relations] in C:\wamp\www\relations\propel\runtime\lib\Propel.php on line 573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment