<div dir="ltr"><br><br>On Wed, Nov 7, 2018 at 7:06 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>> On Wed, 7 Nov 2018, Markus Metz wrote:<br>><br>> > for sqlite, the database must be a path to a sqlite database, in your<br>> > case, as you used yourself before:<br>> > database="$HOME/data/grassdata/willamette_basin/mercury/sqlite/sqlite.db"<br>><br>>    Well, the situation here has become FUBAR and I need help fixing things.<br>><br>>    The geometry/database in grass has 8 maps, each with an associated<br>> attribute table. The stations map is connected to the postgres table:<br>><br>> $ less data/grassdata/willamette_basin/mercury/vector/stations/dbln<br>> 1/stations|stations|cat|/home/rshepard/data/grassdata/willamette_basin/willamette-river-hg|pg<br>><br>> Other maps still have their tables in the sqlite.db; e.g.,<br>> 1/FishD_AllSpecies_January2012|all_species|cat|$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db|sqlite<br>><br>> so I tried to re-connect it to the postgres table using v.db.connect with<br>> this result:<br>><br>> > v.db.connect map=all_species driver=pg database="$HOME/data/grassdata/willamette_basin/willamette-river-hg" table=all_species -o<br>> DBMI-PostgreSQL driver error:<br><div>> Connection failed.</div><div><br></div><div>for pg you don't specify a path/to/file as database, instead you use a name: database=willamette-river-hg</div><div><br></div><div>Markus M<br></div><div><br></div>> FATAL:  database "/home/rshepard/data/grassdata/willamette_basin/willamette-river" does not exist<br>> DBMI-PostgreSQL driver error:<br>> Connection failed.<br>> FATAL:  database "/home/rshepard/data/grassdata/willamette_basin/willamette-river" does not exist<br>> WARNING: Unable to open database<br>>           </home/rshepard/data/grassdata/willamette_basin/willamette-river-hg><br>>           by driver <pg><br>> WARNING: Unable open database<br>>           </home/rshepard/data/grassdata/willamette_basin/willamette-river-hg><br>>           by driver <pg><br>> ERROR: Table <all_species> does not exist in database<br>>         </home/rshepard/data/grassdata/willamette_basin/willamette-river-hg><br>><br>>    Grass is connected to that database and I'm logged in:<br>> > db.connect -p<br>> driver: pg<br>> database: /home/rshepard/data/grassdata/willamette_basin/willamette-river-hg<br>><br>> and, of course, the table 'all_species' exists there:<br>><br>> willamette-river-hg=# \d<br>>               List of relations<br>>   Schema |      Name      | Type  |  Owner<br>> --------+----------------+-------+----------<br>>   public | all_species    | table | rshepard<br>><br>>    So, I've obviously missed a step or the proper syntax and have become<br>> sufficiently confused by what's to be done when connected to each database<br>> that I need to be shown the True Path to transferring the rest of the map<br>> attribute tables to the ones db.cop(ied) to the postgres database.<br>><br>> TIA,<br>><br>> Rich<br>><br>><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>