[GRASS-SVN] r66395 - in grass/branches/releasebranch_7_0: db/db.login vector/v.db.connect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 1 14:15:07 PDT 2015


Author: neteler
Date: 2015-10-01 14:15:07 -0700 (Thu, 01 Oct 2015)
New Revision: 66395

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

Modified: grass/branches/releasebranch_7_0/db/db.login/db.login.html
===================================================================
--- grass/branches/releasebranch_7_0/db/db.login/db.login.html	2015-10-01 21:06:38 UTC (rev 66394)
+++ grass/branches/releasebranch_7_0/db/db.login/db.login.html	2015-10-01 21:15:07 UTC (rev 66395)
@@ -1,28 +1,38 @@
 <h2>DESCRIPTION</h2>
 
-<em>db.login</em> sets the user name and optionally also a password for
-the connection to the selected <b>database</b> through the DB <b>driver</b>.
+<em>db.login</em> sets login parameters such an user name and
+optionally also a password for the connection to
+the selected <b>database</b> through the DB <b>driver</b>.
 
 <h2>NOTE</h2>
 
-This is only related to 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>. The passwords are stored in a
-hidden, unencrypted file in the user account ('home' directory)
-called <em>.grass7/dblogin</em>. Only the file owner can access this
-file.
+This command is only related to 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>.
 
+<p>
+Note that the passwords are stored in a hidden, <i>unencrypted</i>
+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:
+Only username specified (assuming locally accessible PostgreSQL DB
+without password):
 
 <div class="code"><pre>
-db.login user=bacava
+db.login driver=pg database=mydb
 </pre></div>
 
 <p>
-Username and password specified (note that the command
-lines history will store the password in this way):
+Username and password specified (note that the command lines
+history will store the password in this way):
 
 <div class="code"><pre>
 db.login user=bacava password=secret
@@ -33,14 +43,16 @@
 lines history will store the password in this way):
 
 <div class="code"><pre>
-db.login user=bacava password=""
+db.login driver=pg database=mydb user=bacava password=""
 </pre></div>
 
+
 <h2>SEE ALSO</h2>
 
 <em>
 <a href="db.connect.html">db.connect</a>,
-<a href="db.test.html">db.test</a>
+<a href="db.test.html">db.test</a>,
+<a href="db.tables.html">db.tables</a>
 </em>
 
 <p>

Modified: grass/branches/releasebranch_7_0/vector/v.db.connect/v.db.connect.html
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.db.connect/v.db.connect.html	2015-10-01 21:06:38 UTC (rev 66394)
+++ grass/branches/releasebranch_7_0/vector/v.db.connect/v.db.connect.html	2015-10-01 21:15:07 UTC (rev 66395)
@@ -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