To use the remote data service you will need a PostgreSQL database running to serve as the backend. You can find more information on setting that up on the
The `db_connect` command can be used to connect to the remote data service, or a Postgres database, to enable data storage.
### Connecting
To connect, enter `db_connect <url>` in msfconsole. The URL can be either an http(s) string pointing to a remote data store, such as `http://127.0.0.1:8080` or `https://127.0.0.1:8080`, or a custom Postgres string such as `user:password@127.0.0.1:8080/database_name`.
### Saving the Connection
Data services can be saved for later use using the `db_save` command.
**Usage:**
*`db_save <options> <name>`
* Options:
*`-d`,`--default` - Set this data service as the default connection.
*`-c`,`--clear-default` - Clear the currently set default data service.
*`--delete` - Delete the specified data service.
* Examples:
*`db_save new_york_server` - Save the current connection as "new_york_server".
*`db_save -d la_server` - Save the current connection as "la_server" and set it as the default.
*`db-save --delete new_york_server` - Delete the "new_york_server" entry.