2

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.

3
  • Without knowing propel, have you tried pgsql:host=localhost;port=5432;dbname=test_database;user=postgres;password=postgres? Commented Jun 21, 2012 at 9:30
  • Is your database in PostGre named "pgsql"? Commented Jun 21, 2012 at 9:57
  • DrColossos: , yes i've try but it didn't help. Gabriel: when i create this database everything is ok , but i wonderind why, dbname is "test_database" not "pgsql" Commented Jun 21, 2012 at 10:27

2 Answers 2

1

This issue was a bug in the PropelBundle, it has been fixed by the following commit (even if the commit message is about MySQL, it fixes other RDBMS): https://github.com/propelorm/PropelBundle/commit/b4475d27fb1eb846d10cc2d2e2bd164f037508e3

Sign up to request clarification or add additional context in comments.

Comments

0

I 've installed new PropelBundle via Composer and everything is ok now. I think maybe it was a problem with 1.0 bundle , now I have 1.1

1 Comment

It was a bug from PropelBundle and was fixed few days ago.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.