Thread:Project:Support desk/Mediawiki with Postgresql socket

Hello I try mediawiki with postgresql socket with the following:

$wgDBtype = "postgres"; $wgDBserver = "/var/run/postgresql"; $wgDBname = "wikidb"; $wgDBuser = "wikiuser"; $wgDBpassword = "wikipass";

$wgDBport = "5432"; $wgDBmwschema = "mediawiki";

and get an error that could not connect to db. With an empty $wgDBserver "localhost" is used in connection string.

I also try the following in a testfile (and it works):

pg_connect('host=/var/run/postgresql port=5432 dbname=wiki user=wikiuser password=wikipass') or die('Could not connect: ' . pg_last_error);

How can I use Postgres socket connection?

Regards, basti