|
NAMEdb.login - Sets user/password for DB driver/database.KEYWORDSdatabase, connection settingsSYNOPSISdb.logindb.login --help db.login [-p] driver=name database=name [user=string] [password=string] [host=string] [port=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui] Flags:
Parameters:
DESCRIPTIONdb.login sets login parameters such an user name and optionally also a password, a hostname or a port for the connection to the selected database through the DB driver.NOTEOptions host and port are related to only SQL database backends like PostgreSQL, MySQL or ODBC.Note that the passwords are stored in a hidden, unencrypted file in the user account, specifically
EXAMPLESOnly username specified (assuming locally accessible PostgreSQL DB without password):db.login driver=pg database=mydb Username, password and hostname specified (note that the command
lines history will store the password in this way):
db.login driver=pg database=mydb user=bacava password=secret host=db.example.com Username and empty password specified:
db.login driver=pg database=mydb user=bacava password="" SEE ALSOdb.connect, db.test, db.tablesSQL support in GRASS GIS AUTHORRadim BlazekSupport for hostname and port by Martin Landa, OSGeoREL, Czech Technical University in Prague, Czech Republic (GRASS 7.1) SOURCE CODEAvailable at: db.login source code (history)Main index | Database index | Topics index | Keywords index | Graphical index | Full index © 2003-2021 GRASS Development Team, GRASS GIS 7.8.6 Reference Manual
Visit the GSP FreeBSD Man Page Interface. |