<div dir="ltr"><br><br>On Tue, Oct 30, 2018 at 10:37 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>> On Tue, 30 Oct 2018, Rich Shepard wrote:<br>><br>> > I was thinking of working within grass rather than at the bash prompt.<br>> > You're right: I know the difference between double and single quotes but<br>> > blew it on this instance.<br>><br>>    I'm still missing something.<br>><br>>    From the grass shell the command, db.connect driver=pg<br>> database=willamette_river_hg, apparently completes because there's no<br>> warning or error displayed.<br><div><br></div><div>db.connect only sets the default database, it does not test if it exists or is accessible. For PG, you need to use db.login first in order to actually use the PG database.<br></div><div><br></div><div>HTH,</div><div><br></div><div>Markus M</div><div><br></div><div>></div>>    However, the db.copy command still cannot find the database:<br>><br>> GRASS 7.7.svn (willamette_basin):~/data/grassdata/willamette_basin > 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>>    I access the database with psql from the bash prompt with no issues:<br>><br>> $ psql willamette-river-hg<br>> psql (10.3)<br>> Type "help" for help.<br>><br>> willamette-river-hg=#<br>><br>>    Germane to quotation marks, the examples on the db.copy page use both,<br>> sometimes in the same example.<br>><br>> Regards,<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>