[GRASS-SVN] r66394 - in grass/trunk: db/db.login vector/v.db.connect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 1 14:06:38 PDT 2015


Author: neteler
Date: 2015-10-01 14:06:38 -0700 (Thu, 01 Oct 2015)
New Revision: 66394

Modified:
   grass/trunk/db/db.login/db.login.html
   grass/trunk/vector/v.db.connect/v.db.connect.html
Log:
db.login + v.db.connect manuals: added where connection info is stored

Modified: grass/trunk/db/db.login/db.login.html
===================================================================
--- grass/trunk/db/db.login/db.login.html	2015-10-01 16:11:12 UTC (rev 66393)
+++ grass/trunk/db/db.login/db.login.html	2015-10-01 21:06:38 UTC (rev 66394)
@@ -7,16 +7,20 @@
 <h2>NOTE</h2>
 
 Options <b>host</b> and <b>port</b> are related to only SQL database
-backends
-like <a href="grass-pg.html">PostgreSQL</a>, <a href="grass-mysql.html">MySQL</a>
-or <a href="grass-odbc.html">ODBC</a>.
+backends like <a href="grass-pg.html">PostgreSQL</a>,
+<a href="grass-mysql.html">MySQL</a> or <a href="grass-odbc.html">ODBC</a>.
 
 <p>
 Note that the passwords are stored in a hidden, <i>unencrypted</i>
-file in the user account ('home' directory)
-called <em>.grass7/dblogin</em>. Only the file owner can access this
-file.
+file in the user account, specifically
 
+<ul>
+<li> in the 'home' directory, i.e. <tt>$HOME/.grass7/dblogin</tt> (Unix-like systems)</li>
+<li> <tt>%APPDATA%/GRASS7/dblogin</tt> (MS-Windows)</li>
+</ul>
+
+Only the file owner can access this file.
+
 <h2>EXAMPLES</h2>
 
 Only username specified (assuming locally accessible PostgreSQL DB
@@ -31,7 +35,7 @@
 history will store the password in this way):
 
 <div class="code"><pre>
-db.login driver=pg database=mydb user=bacava password=secret host=db.server.com
+db.login driver=pg database=mydb user=bacava password=secret host=db.example.com
 </pre></div>
 
 <p>

Modified: grass/trunk/vector/v.db.connect/v.db.connect.html
===================================================================
--- grass/trunk/vector/v.db.connect/v.db.connect.html	2015-10-01 16:11:12 UTC (rev 66393)
+++ grass/trunk/vector/v.db.connect/v.db.connect.html	2015-10-01 21:06:38 UTC (rev 66394)
@@ -6,9 +6,16 @@
 
 <h2>NOTE</h2>
 
+Connection information (driver, database, table, key) is stored for
+each map, in the file
+<div class="code"><pre>
+<database>/<location>/<mapset>/vector/<map>/dbln
+</pre></div>
+
+<p>
 If parameters for database connection are already set with 
 <a href="db.connect.html">db.connect</a>, they are taken as default values and
-do not need to be spcified each time.
+do not need to be specified each time.
 
 <p>When printing database connection (<em>p</em> or <em>g</em> flag) the parameter
 <em>layer</em> is ignored, i.e. <b>all</b> connections are printed to the



More information about the grass-commit mailing list