3
<em>db.login</em> sets the user name and optionally also a password for
4
the connection to the selected <b>database</b> through the DB <b>driver</b>.
8
This is only related to SQL database backends
9
like <a href="grass-pg.html">PostgreSQL</a>, <a href="grass-mysql.html">MySQL</a>
10
or <a href="grass-odbc.html">ODBC</a>. The passwords are stored in a
11
hidden, unencrypted file in the user account ('home' directory)
12
called <em>.grass7/dblogin</em>. Only the file owner can access this
17
Only username specified:
19
<div class="code"><pre>
24
Username and password specified (note that the command
25
lines history will store the password in this way):
27
<div class="code"><pre>
28
db.login user=bacava password=secret
32
Username and empty password specified (note that the command
33
lines history will store the password in this way):
35
<div class="code"><pre>
36
db.login user=bacava password=""
42
<a href="db.connect.html">db.connect</a>,
43
<a href="db.test.html">db.test</a>
47
<a href="sql.html">SQL support in GRASS GIS</a>
54
<i>Last changed: $Date: 2014-11-28 10:58:18 +0100 (Fri, 28 Nov 2014) $</i>