Book Contents

Book Index

Next Topic

Home

Connecting From the Command Line

You can use vsql from the command line to connect to a database from any Linux machine, including ones that are not part of the cluster. Simply copy /opt/vertica/bin/vsql to your machine.

Syntax

/opt/vertica/bin/vsql [ option...] [ dbname [ username ] ]

Semantics

option

one or more of the vsql command line options

dbname

the name of the target database

username

the name of the user to connect as

Notes

Example

This example redirects vsql output and error messages into an output file:

vsql --echo-all < retail_queries.sql > retail_queries.out 2>&1

In This Section

Command Line Options

Connecting From a Non-Cluster Host