hi Veikko,
I am using propel 1.3. to connect to database
the error message is like this
* $dsn = $conparams['dsn'];** *
* if ($dsn === null) {**
throw new PropelException('No dsn specified in your connection
parameters for datasource ['.$name.']');*
* }** *
* $user = isset($conparams['user']) ? $conparams['user'] : null*
i am attaching my runtime-conf.xml file with this
thax
surej
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- This new XML configuration format is the default format for properties
files. You can also used the old INI-based .properties format, but
support for this will be removed in next major Propel version. -->
<config>
<!--
#
# L O G G I N G
#
# We use PEAR-compatible Log for all Propel logging and we embed the
# log conf properties within our application configuration.
#
# type - the type of log (default 'file')
# name - the name of log or path to file. (default './propel.log')
# ident - the text used to identify the log messages
# level - the log level
# PEAR_LOG_EMERG 0
# PEAR_LOG_ALERT 1
# PEAR_LOG_CRIT 2
# PEAR_LOG_ERR 3
# PEAR_LOG_WARNING 4
# PEAR_LOG_NOTICE 5
# PEAR_LOG_INFO 6
# PEAR_LOG_DEBUG 7 <== DEFAULT
-->
<log>
<ident>propel-company</ident>
<level>7</level>
</log>
<!--
#
# P R O P E L P R O P E R T I E S
#
# Note that you can configure multiple datasources; for example if your
# project uses several databases.
-->
<propel>
<datasources default="company">
<datasource id="company">
<!-- the Propel adapter (usually same as phptype of connection DSN) -->
<adapter>mysql</adapter>
<!-- Connection DSN. See PEAR DSN format for other supported parameters. -->
<connection>
<phptype>mysql</phptype>
<hostspec>localhost</hostspec>
<database>company</database>
<username>test</username>
<password>testpass</password>
</connection>
</datasource>
</datasources>
</propel>
</config>
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users