Просмотр исходного кода

db.login + v.db.connect manuals: added where connection info is stored

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66394 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 лет назад
Родитель
Сommit
e5ae6df625
2 измененных файлов с 19 добавлено и 8 удалено
  1. 11 7
      db/db.login/db.login.html
  2. 8 1
      vector/v.db.connect/v.db.connect.html

+ 11 - 7
db/db.login/db.login.html

@@ -7,15 +7,19 @@ the selected <b>database</b> through the DB <b>driver</b>.
 <h2>NOTE</h2>
 <h2>NOTE</h2>
 
 
 Options <b>host</b> and <b>port</b> are related to only SQL database
 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>
 <p>
 Note that the passwords are stored in a hidden, <i>unencrypted</i>
 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>
 <h2>EXAMPLES</h2>
 
 
@@ -31,7 +35,7 @@ Username, password and hostname specified (note that the command lines
 history will store the password in this way):
 history will store the password in this way):
 
 
 <div class="code"><pre>
 <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>
 </pre></div>
 
 
 <p>
 <p>

+ 8 - 1
vector/v.db.connect/v.db.connect.html

@@ -6,9 +6,16 @@ layer.
 
 
 <h2>NOTE</h2>
 <h2>NOTE</h2>
 
 
+Connection information (driver, database, table, key) is stored for
+each map, in the file
+<div class="code"><pre>
+&lt;database&gt;/&lt;location&gt;/&lt;mapset&gt;/vector/&lt;map&gt;/dbln
+</pre></div>
+
+<p>
 If parameters for database connection are already set with 
 If parameters for database connection are already set with 
 <a href="db.connect.html">db.connect</a>, they are taken as default values and
 <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
 <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
 <em>layer</em> is ignored, i.e. <b>all</b> connections are printed to the