This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Nominatim - postgres DB argument issue

0

Hi,

I am using nominatim-2.3.1.

I set DB username & password @define('CONST_Database_DSN', 'pgsql://nomi:nomi@localhost:5432/nominatim'); in settings.php, But received in osm2pgsql.c & postgresql.c as empty.

So I cant connect DB to create DB & insert data.

EDIT:

The same Issue comes in Nominatim-2.5.1 too. So now i need to give username in osm2pgsql.c & postgresql.c

asked 18 Jan '16, 07:42

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

edited 16 Apr '18, 08:47

Tried in Nominatim-3.1.0 too. Still, I can't get DB username. Also tried as given in local.php as follows, but not working. @define('CONST_Database_DSN', 'pgsql://nomi:nomi@:localhost:5432/nominatim');

Every time(for upgrade nomination versions) I need to change my username in the source before compilation.

(16 Apr '18, 08:31) Rajavelu_M

Source code available on GitHub .