Hi,
is it just me, or does connecting to a postgresql database through a
unix socket not work?
The documentation (http://book.cakephp.org/view/40/Database-
Configuration) says I can put the socket path in the 'port' field of
the database config, so I did that:
var $production = array(
'driver' => 'postgres',
'persistent' => false,
'host' => 'localhost',
'port' => '/var/run/postgresql/.s.PGSQL.5432',
'login' => 'bar',
'password' => 'foo'
'database' => 'baz',
'prefix' => '',
);
But when I try to load a page, cake says:
Unable to connect to PostgreSQL
server: could not connect to server: Connection timed out Is the
server running on host "localhost" and accepting TCP/IP connections on
port /var/run/postgresql/.s.PGSQL.5432?
In fact, I could not find anything related to connections to unix
sockets other then with mysqli:
grep -R socket cake/libs/model/
cake/libs/model/datasources/dbo/dbo_mysqli.php:
$config['socket'] =
null;
cake/libs/model/datasources/dbo/dbo_mysqli.php:
$config['socket'] =
$config['port'];
cake/libs/model/datasources/dbo/dbo_mysqli.php: $this->connection =
mysqli_connect($config['host'], $config['login'], $config['password'],
$config['database'], $config['port'], $config['socket']);
I'm using Cake 1.2.2.8120
Thanks,
Dieter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---