The comments in the php docs say that using "host=/path/to/socket" in
the connection string (or omitting the host altogether) is the way to do
it. And DatabasePostgres just seems to build a simple connection string
out of what it is given (dbname, username, and password are the only
ones always included; all other values are only included if they are not
false and not an empty string).
So theoretically `$wgDBserver = "/var/run/postgresql/.s.PGSQL.5434"`
without the port set was supposed to work fine.
You could double check that MediaWiki is making the right connection
string by var_dump-ing the string generated by DatabasePostgress::
makeConnectionString in includes/db/DatabasePostgres.php.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://danielfriesen.name/]
On 2016-06-06 4:11 AM, npyxg1mg2kn7dvk0rl06 wrote:
What $wgDBserver and $wgDBport settings I should use
with postgres socket?
What I tried:
$wgDBtype = "postgres";
$wgDBserver = "localhost";
$wgDBname = "dbname";
$wgDBuser = "dbuser";
$wgDBpassword = "password";
$wgDBport = "5434";
# Yes I run postgres in /var/run/postgresql/.s.PGSQL.5434
$wgDBmwschema = "mediawiki";
I tried also empty $wgDBserver and $wgDBserver =
"localhost:/var/run/postgresql/"; and $wgDBserver =
"localhost:/var/run/postgresql/.s.PGSQL.5434" with commented $wgDBport, as well
as $wgDBserver = "/var/run/postgresql/"; and $wgDBserver =
"/var/run/postgresql/.s.PGSQL.5434";
Mediawiki works OK with port, but I want mediawiki to use socket. Since all other
applications use it without any problems.
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l