PropelBundle database:create for postgres

Posted by Karol85 on Stack Overflow See other posts from Stack Overflow or by Karol85
Published on 2012-06-21T08:16:58Z Indexed on 2012/06/25 9:16 UTC
Read the original article Hit count: 239

Filed under:
|
|

I've installed propel bundle for symfony2. my database configuration is:

propel:
    dbal:
        driver:               pgsql
        user:                 postgres
        password:             postgres
        dsn:                  pgsql:host=localhost;port=5432;dbname=test_database
        options:              {}
        attributes:           {}

When i wan to create this database from console (console propel: database:create) i have got strange error : Unable to open PDO connection [wrapped: SQLSTATE[08006] [7] FATAL: database "pgsql" does not exist.

i created pgsql database on my localhost and everything was good. Database "test_database" was succesfull created. Can somebody explain me why i got this previous error? On mysql i've created database without any problems.

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about symfony-2.0