[GRASS-dev] db.login with postgresql and non standard port
Luca Delucchi
lucadeluge at gmail.com
Thu Mar 10 01:15:40 PST 2016
On 10 March 2016 at 09:59, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> 2016-03-10 9:42 GMT+01:00 Luca Delucchi <lucadeluge at gmail.com>:
>>>> db.login -p
>>>> sqlite|$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db|lucadelu|||
>>>> sqlite|/grassdata,nc_spm_08,lucadelu,sqlite.db|lucadelu|||
>> No, I donit think so. I just run
>
> these two lines are apparently some leftover from other commands you
> entered in the past. There is no relation to PG. Ma
>
ok, removed the file as proposed by Moritz, set again the login
db.login driver=pg database=grassdata user=lucadelu port=5433 host=localhost
db.login -p
pg|grassdata|lucadelu|||
but the file is correct
cat /home/lucadelu/.grass7/dblogin
pg|grassdata|lucadelu||localhost|5433
Probably something is wrong in the db library because it seems to not
consider the port (and probably also the host)
--
ciao
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
More information about the grass-dev
mailing list