This is the command db.createdbgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
db.createdb - Creates an empty database.
KEYWORDS
database, attribute table, SQL
SYNOPSIS
db.createdb
db.createdb --help
db.createdb driver=name database=name [--help] [--verbose] [--quiet] [--ui]
Flags:
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog
Parameters:
driver=name [required]
Name of database driver
Options: mysql, odbc, sqlite, pg, ogr, dbf
Default: sqlite
database=name [required]
Name of database
DESCRIPTION
db.createdb allows the user to create a new empty database through different drivers. A
working database connection needs to be established, see db.login.
Currently only SQLite and PostgreSQL database drivers are supported.
EXAMPLES
Create a new SQLite file-based database
Note that the standard GRASS GIS SQLite database is by default generated in the user’s
current mapset. This example shows an out-of-mapset database file creation:
db.createdb driver=sqlite database=/opt/sqlite.db
Create a new PostgreSQL database
Create a new PostgreSQL database (after the PostgreSQL connection got established through
the pg driver):
db.createdb driver=pg database=grassdb
Create a new PostgreSQL database (after the PostgreSQL connection got established through
the odbc driver):
db.createdb driver=odbc database=grassdb
TODO
Support other database drivers, too.
Use db.createdbgrass online using onworks.net services