<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Connecting from the command line</title>
    <link>/en/connecting-to/using-vsql/connecting-from-command-line/</link>
    <description>Recent content in Connecting from the command line on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/connecting-to/using-vsql/connecting-from-command-line/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Connecting-To: Command-line options</title>
      <link>/en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/</guid>
      <description>
        
        
        &lt;p&gt;This section contains the command-line options for vsql.&lt;/p&gt;
&lt;h2 id=&#34;general-options&#34;&gt;General options&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/c-command/&#34;&gt;‑‑command&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;command&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/c-command/&#34;&gt;‑c&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;command&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Runs one command and exits. This command is useful in shell scripts.
&lt;p&gt;Variables set with &lt;code&gt;‑v&lt;/code&gt; are not processed when referenced in a &lt;code&gt;‑c&lt;/code&gt; command. To use variables, create a &lt;code&gt;.sql&lt;/code&gt; file that references the variable and pass it to vsql with the &lt;code&gt;‑f&lt;/code&gt; option.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/d-dbname/&#34;&gt;&lt;code&gt;‑‑dbname&lt;/code&gt; &lt;em&gt;&lt;code&gt;dbname&lt;/code&gt;&lt;/em&gt;&lt;/a&gt; &lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/d-dbname/&#34;&gt;&lt;code&gt;‑d&lt;/code&gt; &lt;em&gt;&lt;code&gt;dbname&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the name of the database to which you want to connect. Using this command is equivalent to specifying &lt;strong&gt;&lt;code&gt;dbname&lt;/code&gt;&lt;/strong&gt; as the first non-option argument on the command line.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/f-file/&#34;&gt;‑‑file&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;filename&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/f-file/&#34;&gt;‑f&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;filename&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Uses the &lt;em&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/em&gt; as the source of commands instead of reading commands interactively. After the file is processed, vsql terminates.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/help/&#34;&gt;‑‑help&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Displays help about vsql command line arguments and exits.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/i-timing/&#34;&gt;‑‑timing&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/i-timing/&#34;&gt;‑i&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Enables the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/timing/&#34;&gt;\timing&lt;/a&gt; meta-command.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/l-list/&#34;&gt;‑‑list&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/l-list/&#34;&gt;‑l&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Returns all available databases, then exits. Other non-connection options are ignored. This command is similar to the internal command &lt;code&gt;\list&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/v-variable-set/&#34;&gt;‑‑set&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;assignment&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/v-variable-set/&#34;&gt;‑‑variable&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;assignment&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/v-variable-set/&#34;&gt;‑v&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;assignment&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Performs a variable assignment, like the vsql command&lt;code&gt;\set&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/v-version/&#34;&gt;‑‑version&lt;/a&gt;  &lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/v-version/&#34;&gt;‑V&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Prints the vsql version and exits.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/v-version/&#34;&gt;‑‑no‑vsqlr&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/x-no-vsqlrc/&#34;&gt;‑X &lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Disables all command line editing and history functionality.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;connection-options&#34;&gt;Connection options&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;‑4&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;When resolving hostnames in dual stack environments, prefer IPv4 addresses.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑6&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;When resolving hostnames in dual stack environments, prefer IPv6 addresses.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑B &lt;/code&gt;&lt;em&gt;&lt;code&gt;server:port&lt;/code&gt;&lt;/em&gt;&lt;code&gt;[,...]&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Sets connection backup server/port. Use comma-separated multiple hosts (default: not set). If using an IPv6 address, enclose the address in brackets ([, ]) and place the port outside of the brackets. For example &lt;code&gt;\B [2620:0:a13:8a4:9d9f:e0e3:1181:7f51]:5433&lt;/code&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑‑enable‑connection&lt;/code&gt;&lt;br /&gt;&lt;code&gt;‑load‑balance ‑C&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Enables connection load balancing (default: not enabled).

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

You can only use load balancing with one address family in dual stack environments. For example, if you&#39;ve configured load balancing for IPv6 addresses, then when an IPv4 client connects and requests load balancing the server does not allow it.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/h-host/&#34;&gt;‑‑host&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;hostname&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/h-host/&#34;&gt;‑h&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;hostname&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the host name of the machine on which the server is running.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑k &lt;/code&gt;&lt;em&gt;&lt;code&gt;krb‑service&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Provides the service name portion of the Kerberos principal (default: vertica). Using ‑k is equivalent to using the drivers&#39; KerberosServiceName connection string.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑K &lt;/code&gt;&lt;em&gt;&lt;code&gt;krb‑host&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Provides the instance or host name portion of the Kerberos principal. ‑K is equivalent to the drivers&#39; KerberosHostName connection string.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/g-label/&#34;&gt;&lt;code&gt;‑g&lt;/code&gt; &lt;em&gt;&lt;code&gt;client‑label&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/g-label/&#34;&gt;&lt;code&gt;‑‑label&lt;/code&gt; &lt;em&gt;&lt;code&gt;client‑label&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Sets the client label for the connection.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/m-sslmode/&#34;&gt;‑‑sslmode&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/m-sslmode/&#34;&gt;‑m&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the policy for making SSL connections to the server. Options are require, prefer, allow, and disable. You can also set the VSQL_SSLMODE variable to achieve the same effect. If the variable is set, the command-line option overrides it.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/p-port/&#34;&gt;&lt;code&gt;‑‑port&lt;/code&gt; &lt;em&gt;&lt;code&gt;port&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/p-port/&#34;&gt;&lt;code&gt;‑p&lt;/code&gt; &lt;em&gt;&lt;code&gt;port&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the TCP port or the local socket file extension on which the server is listening for connections. Defaults to port 5433.&lt;/dd&gt;
&lt;dt&gt;
`‑‑username` *`username`*&lt;br /&gt;
`‑U` *`username`*&lt;/dt&gt;
&lt;dd&gt;Connects to the database as the user &lt;em&gt;username&lt;/em&gt; instead of the default.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑w &lt;/code&gt;&lt;em&gt;&lt;code&gt;password&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the password for a database user.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Using this command-line option displays the database password in plain text. Use it with care, particularly if you are connecting as the database administrator, to avoid exposing sensitive information.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑‑password&lt;/code&gt; &lt;br /&gt;&lt;code&gt;‑W&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Forces vsql to prompt for a password before connecting to a database.The password is not displayed on the screen. This option remains set for the entire session, even if you change the database connection with the meta-command &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/connect/&#34;&gt;&lt;code&gt;\connect&lt;/code&gt;&lt;/a&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;output-formatting&#34;&gt;Output formatting&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/no-align/&#34;&gt;‑‑no‑align&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/no-align/&#34;&gt;‑A&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Switches to unaligned output mode. (The default output mode is aligned.)&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑b&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Beep on command completion.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/f-field-separator/&#34;&gt;‑‑field‑separator&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;separator&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/f-field-separator/&#34;&gt;‑F&lt;/a&gt; &lt;span class=&#34;code-variable&#34;&gt;separator&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the field separator for unaligned output (default: &amp;quot;|&amp;quot;) (‑P fieldsep=). (See &lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/no-align/&#34;&gt;&lt;code&gt;‑A ‑‑no‑align&lt;/code&gt;&lt;/a&gt;.) Using this command is equivalent to &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/&#34;&gt;&lt;code&gt;\pset&lt;/code&gt;&lt;/a&gt; &lt;code&gt;fieldsep&lt;/code&gt; or &lt;code&gt;\f&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/h-html/&#34;&gt;‑‑html&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/h-html/&#34;&gt;‑H&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Turns on HTML tabular output. Using this command is equivalent to using the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/&#34;&gt;&lt;code&gt;\pset&lt;/code&gt;&lt;/a&gt; &lt;code&gt;format html&lt;/code&gt; or the &lt;code&gt;\H&lt;/code&gt; command.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/p-pset/&#34;&gt;&lt;code&gt;‑‑pset&lt;/code&gt; &lt;em&gt;&lt;code&gt;assignment&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/p-pset/&#34;&gt;&lt;code&gt;‑P&lt;/code&gt; &lt;em&gt;&lt;code&gt;assignment&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Lets you specify printing options in the style of &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/&#34;&gt;&lt;code&gt;\pset&lt;/code&gt;&lt;/a&gt; on the command line. You must separate the name and value with an equals (=) sign instead of a space. Thus, to set the output format to LaTeX, you could write &lt;code&gt;‑P format=latex&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑Q&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Turns on trailing record separator. Use &lt;code&gt;\pset trailingrecordsep&lt;/code&gt; to toggle the trailing record separator on or off.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/r-record-separator/&#34;&gt;&lt;code&gt;‑‑record‑separator&lt;/code&gt; &lt;em&gt;&lt;code&gt;separator&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/r-record-separator/&#34;&gt;&lt;code&gt;‑R&lt;/code&gt; &lt;em&gt;&lt;code&gt;separator&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Uses &lt;em&gt;separator&lt;/em&gt; as the record separator. Using this command is equivalent to using the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/&#34;&gt;&lt;code&gt;\pset&lt;/code&gt;&lt;/a&gt; &lt;code&gt;recordsep&lt;/code&gt; command.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/t-tuples-only/&#34;&gt;‑‑tuples‑only&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/t-tuples-only/&#34;&gt;‑t&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Disables printing of column names, result row count footers, and so on. This is equivalent to the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/meta-commands-quick-reference/&#34;&gt;vsql meta-command &lt;/a&gt;&lt;code&gt;\t&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/t-table-attr/&#34;&gt;&lt;code&gt;‑‑table‑attr&lt;/code&gt; &lt;em&gt;&lt;code&gt;options&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/t-table-attr/&#34;&gt;&lt;code&gt;‑T&lt;/code&gt; &lt;em&gt;&lt;code&gt;options&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Allows you to specify options to be placed within the HTML &lt;code&gt;table&lt;/code&gt; tag. See &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/pset/&#34;&gt;&lt;code&gt;\pset&lt;/code&gt;&lt;/a&gt; for details.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;‑‑expanded&lt;/code&gt; &lt;br /&gt;&lt;code&gt;‑x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Enables extended table formatting mode. This is equivalent to the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/meta-commands-quick-reference/&#34;&gt;vsql meta-command &lt;/a&gt;&lt;code&gt;\x&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;input-and-output-options&#34;&gt;Input and output options&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/echo-all/&#34;&gt;‑‑echo‑all&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/echo-all/&#34;&gt;‑a&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Prints all input lines to standard output as they are read. This approach is more useful for script processing than interactive mode. It is the same as setting the variable &lt;a href=&#34;../../../../en/connecting-to/using-vsql/variables/echo/&#34;&gt;&lt;code&gt;ECHO&lt;/code&gt;&lt;/a&gt; to &lt;code&gt;all&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/e-echo-queries/&#34;&gt;‑‑echo‑queries&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/e-echo-queries/&#34;&gt;‑e&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Copies all SQL commands sent to the server to standard output. Using this command is equivalent to setting the variable ECHO to queries.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/e/&#34;&gt;‑E&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Displays queries generated by internal commands.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/n/&#34;&gt;‑n&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Disables command line editing.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/o-output/&#34;&gt;&lt;code&gt;‑‑output&lt;/code&gt; &lt;em&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/o-output/&#34;&gt;&lt;code&gt;‑o&lt;/code&gt; &lt;em&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Writes all query output to &lt;em&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/em&gt;. Using this command is equivalent to using the vsql meta-command &lt;code&gt;\o&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/q-quiet/&#34;&gt;‑‑quiet&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/q-quiet/&#34;&gt;‑q&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies that vsql do its work quietly (without informational output, such as welcome messages). This command is useful with the ‑c option. Within vsql you can also set the QUIET variable to achieve the same effect.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/s-single-step/&#34;&gt;‑‑single‑step&lt;/a&gt;&lt;/code&gt; &lt;br /&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/s-single-step/&#34;&gt;‑s&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Runs in single-step mode for debugging scripts. Forces vsql to prompt before each statement is sent to the database and allows you to cancel execution.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/s-single-line/&#34;&gt;‑‑single‑line&lt;/a&gt;  &lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/s-single-line/&#34;&gt;‑S&lt;/a&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Runs in single-line mode where a newline terminates a SQL command, as if you are using a semicolon.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

This mode is provided only by customer request. Vertica recommends that you not use single-line mode in cases where you mix SQL and meta-commands on a line. In single-line mode, the order of execution might be unclear to the inexperienced user.

&lt;/div&gt;&lt;/dd&gt;
&lt;/dl&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Connecting from a non-cluster host</title>
      <link>/en/connecting-to/using-vsql/connecting-from-command-line/connecting-from-non-cluster-host/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/using-vsql/connecting-from-command-line/connecting-from-non-cluster-host/</guid>
      <description>
        
        
        &lt;p&gt;You can use the Vertica vsql executable image on a non-cluster Linux host to connect to a Vertica database.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;On Red Hat, CentOS, and SUSE systems, you can install the client driver RPM, which includes the vsql executable. See &lt;a href=&#34;../../../../en/connecting-to/using-vsql/installing-vsql-client/&#34;&gt;Installing the vsql client&lt;/a&gt; for details.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the non-cluster host is running the same version of Linux as the cluster, copy the image file to the remote system. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ scp host01:/opt/vertica/bin/vsql .$ ./vsql
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the non-cluster host is running a different distribution or version of Linux than your cluster hosts, you must install the Vertica server RPM in order to get vsql:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Download the appropriate RPM package by browsing to &lt;a href=&#34;https://vertica.com/&#34;&gt;Vertica website.&lt;/a&gt; On the &lt;strong&gt;Support&lt;/strong&gt; tab, select &lt;strong&gt;Customer Downloads&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the system you used to download the RPM is not the non-cluster host, transfer the file to the non-cluster host.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Log into the non-cluster host as root and install the RPM package using the command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# rpm -Uvh &lt;span class=&#34;code-variable&#34;&gt;filename&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Where &lt;em&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/em&gt; is the package you downloaded. Note that you do not have to run the &lt;code&gt;install_vertica&lt;/code&gt; script on the non-cluster host to use vsql.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use the same &lt;a href=&#34;../../../../en/connecting-to/using-vsql/connecting-from-command-line/command-line-options/&#34;&gt;Command-line options&lt;/a&gt; that you would on a cluster host.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You cannot run vsql on a Cygwin bash shell (Windows). Use ssh to connect to a cluster host, then run vsql.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;


      </description>
    </item>
    
  </channel>
</rss>
