Witam,
Mam problem dotyczący symfony i postgresqla, otóż:
Mam w configach ustawione dane:
<?php
propel.project = portal
propel.database = pgsql
propel.database.createUrl = pgsql://user@localhost/
propel.database.url = pgsql://user@localhost/db
?>
Dane są poprawne na 100%, hasła nie ma. Przy komendzie propel-insert-sql dostaję błąd:
<?php
ziell@greyworld:~/php/portal/svn/trunk$ sudo php5 symfony propel-insert-sql
(...)
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]] [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]] ?>
Jednocześnie logowanie z konsoli przebiega bez problemu:
<?php
ziell@greyworld:~$ psql -U user --password
Password for user user:
Welcome to psql 8.2.5, the PostgreSQL interactive terminal.
?>
W pg_hba.conf mam ustawione następujące dane:
<?php
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all password
# IPv4 local connections:
host all all 127
.0
.0
.1
/32
md5# IPv6 local connections:
?>
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