<div dir="ltr"><br><br>On Tue, Oct 30, 2018 at 10:54 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>> On Tue, 30 Oct 2018, Markus Metz wrote:<br>><br>> > db.connect only sets the default database, it does not test if it exists<br>> > or is accessible. For PG, you need to use db.login first in order to<br>> > actually use the PG database.<br>><br>> Markus M,<br>><br>>    Sigh. Neither without or with a username it still fails:<br>><br><div>> > db.login driver=pg database="willamette_river_hg" user=rshepard --o</div><div><br></div><div>try to set host and port with db.login. Username and password are not required if a ~/.pgpass file exists. See the manual of db.login, following the link to PostgreSQL that describes the GRASS PG driver.</div><div><br></div><div>Markus M<br></div><div><br></div>> WARNING: DB connection <pg/willamette_river_hg> already exists and will be<br>>           overwritten<br>> > db.copy from_driver=sqlite from_database="$HOME/data/grassdata/willamette_basin/mercury/sqlite/sqlite.db" from_table=all_species to_driver=pg to_database="willamette_river_hg" to_table=<a href="http://all_species.pg">all_species.pg</a><br>> DBMI-PostgreSQL driver error:<br>> Connection failed.<br>> FATAL:  database "willamette_river_hg" does not exist<br>><br>> DBMI-PostgreSQL driver error:<br>> Connection failed.<br>> FATAL:  database "willamette_river_hg" does not exist<br>><br>> WARNING: Unable to open database <willamette_river_hg> by driver <pg><br>> no database is open<br>> no database is open<br>> WARNING: Copy table failed<br>><br>> Thanks,<br>><br>> Rich<br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div>