Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [FIXED][symfony] propel-insert-sql na postgresie
Ziels
post
Post #1





Grupa: Zarejestrowani
Postów: 235
Pomógł: 2
Dołączył: 30.06.2006

Ostrzeżenie: (0%)
-----


Witam,

Mam problem dotyczący symfony i postgresqla, otóż:

Mam w configach ustawione dane:
  1. <?php
  2. propel.project  = portal
  3. propel.database = pgsql
  4. propel.database.createUrl = pgsql://user@localhost/
  5. propel.database.url  = pgsql://user@localhost/db
  6. ?>


Dane są poprawne na 100%, hasła nie ma. Przy komendzie propel-insert-sql dostaję błąd:
  1. <?php
  2. ziell@greyworld:~/php/portal/svn/trunk$ sudo php5 symfony propel-insert-sql
  3. (...)
  4. Execution of target "insert-sql" failed for the following reason: /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:296:1: [wrapped: Could not connect [User Info: host=localhost dbname='db' user='user'] [User Info: Array]]
  5. [phing] /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:296:1: [wrapped: Could not connect [User Info: host=localhost dbname='db' user='user'] [User Info: Array]]
  6. ?>


Jednocześnie logowanie z konsoli przebiega bez problemu:
  1. <?php
  2. ziell@greyworld:~$ psql -U user --password
  3. Password for user user:
  4. Welcome to psql 8.2.5, the PostgreSQL interactive terminal.
  5. ?>


W pg_hba.conf mam ustawione następujące dane:
  1. <?php
  2. local all postgres  ident sameuser
  3. # TYPE DATABASE USER CIDR-ADDRESS METHOD
  4.  
  5. # "local" is for Unix domain socket connections only
  6. local  all  all  password
  7. # IPv4 local connections:
  8. host all  all  127.0.0.1/32 md5
  9. # IPv6 local connections:
  10. host all  all  ::1/128  md5
  11. ?>


Na www jest ten sam problem więc zakłądam że problem stoi po stronie samego php bądź symfony/propela. O co może chodzić?

Ten post edytował Ziels 21.03.2008, 12:03:41
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 15:38