Opened 8 years ago

Closed 8 years ago

#2797 closed defect (invalid)

db.databases will not connect to postgres database in GRASS 7.0.2RC2 on Win7 and Ubuntu 15.10

Reported by: pshapley Owned by: grass-dev@…
Priority: normal Milestone: 7.0.3
Component: Database Version: svn-releasebranch70
Keywords: login database connection Cc:
CPU: x86-64 Platform: MSWindows 7

Description (last modified by neteler)

If i try to 'link external vector data' to a postgres driver i get the following:-

db.databases location=db.databases driver=pg location=host="###.###.## port=5432"
DBMI-PostgreSQL driver error:
Unknown option in database definition for PostgreSQL:
db.databases driver=pg location=host="###.###.## port=5432"
DBMI-PostgreSQL driver error:
Unknown option in database definition for PostgreSQL:
db.databases driver=pg location=host="###.###.## port=5432"
ERROR: Unable to list databases. Try to define correct connection settings by db.login.

Change History (5)

comment:1 by neteler, 8 years ago

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:2 by harrikoo, 8 years ago

  1. Your command line is incorrect. You write:

db.databases location=db.databases driver=pg location=host="###.###.## port=5432"

and this should be

db.databases driver=pg location="host=###.###.## port=5432"

Note where the quotations marks are, both the host and the port must be within the quotation marks.

Version 0, edited 8 years ago by harrikoo (next)

comment:3 by neteler, 8 years ago

Description: modified (diff)

comment:4 by neteler, 8 years ago

Description: modified (diff)

comment:5 by neteler, 8 years ago

Resolution: invalid
Status: newclosed

Closing due to user error. Feel free to reopen otherwise.

Note: See TracTickets for help on using tickets.