GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SQLRSH(1) User Commands SQLRSH(1)

sqlrsh - manual page for sqlrsh 1.9.3

sqlrsh [OPTIONS]

sqlrsh is the SQL Relay command line database shell.

It can be used interactively, or non-interactively to run queries directly from the command line, or scripts containing queries.

Host name or IP address of the server to connect to.
Port to connect to.
Local unix socket file name to connect to. Can be used instead of host/port for making connections to local servers.
User name to auth with.
Password to auth with.

Override the default configuration with the specified configuration.
Derive connection info and credentials from the specified instance, as defined in the configuration.
Use Kerberos authentication and encryption.
Use the specified kerberos service.
Use the specified kerberos mechanism.
Use the specified kerberos flags, comma-separated.
Use TLS/SSL authentication and encrpyiton.
Use the specified TLS/SSL version.
Use the specified certificate chain file. This file should contain the client's certificate, private key, and signing certificates, as appropriate. On Windows systems, this must be a .pfx file. On non-Windows systems, a variety of file formats are supported.
Use the specified password to acess the private key in the file specified by -tlscert.
Allow the specified list of ciphers. The list should be quoted and the ciphers should be separated by spaces.
Certificate validation option. "no" - Don't validate the server's certificate. "ca" - Validate that the server's certificate was signed by a trusted certificate authority. "ca+host" - Perform "ca" validation and also validate that one of the subject alternate names (or common name if no SANs are present) in the certificate matches the host parameter. (Falls back to "ca" validation when a unix socket is used.) "ca+domain" - Perform "ca" validation and also validate that the domain name of one of the subject alternate naames (or common name if no SANs are present) in the certificate matches the domain name of the host parameter. (Falls back to "ca" validation when a unix socket is used.)
Use the specified certificate authority file when validating the server's certificate. Or, if "file" is a directory, then use all certificate authority files found in that directory when validating the server's certifictate.
Set the maximum certificate chain validation depth to the specified depth.

Run the specified script which contains commands or queries that could otherwise be run at the sqlrsh prompt.
Run the provided string which contains commands or queries that could otherwise be run at the sqlrsh prompt.
Omit headers and stats in output.
Format the output as specified. Defaults to plain.
env means use LC variables.
calls getFieldAs(Integer|Double) as appropriate
do not print elapsed time
attempt to fetch multiple resultsets
Fetch result sets using the specified number of rows at once.

Interactive session with server at svr:9000 as usr/pwd.

sqlrsh -host svr -port 9000 -user usr -password pwd

Interactive session with local server on socket /tmp/svr.sock as usr/pwd.

sqlrsh -socket /tmp/svr.sock -user usr -password pwd

Interactive session using connection info and credentials from an instance defined in the default configuration.

sqlrsh -id myinst

Interactive session using connection info and credentials from an instance defined in the config file ./myconfig.conf

sqlrsh -config ./myconfig.conf -id myinst

Non-interactive session, running commands from ./script.sql

sqlrsh -id myinst -script ./script.sql

Non-interactive session, running query "select * from mytable" with csv output.

sqlrsh -id myinst -command "select * from mytable" -quiet -format csv

Rudiments version: 1.4.0 Compiled: Aug 9 2021 22:13:29

Written by David Muse.

Copyright © 1999-2018 David Muse
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

August 2021 SQL Relay

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.