Using cqlsh with authentication
How to create a cqlshrc file to default to set credentials when launching cqlsh.
Typically, after configuring authentication, logging into cqlsh requires the
-u and -p options to the
cqlsh
command. To set credentials for use when launching
cqlsh
, create or modify the
.cassandra/cqlshrc file. When present, this file passes
default login information to cqlsh
. The
cqlshrc.sample file provides an example.
The location of the
cqlshrc.sample file depends on the type of installation:
DataStax Enterprise 5.0 Installer-Services and package installations | /etc/dse/cassandra/cqlshrc.sample |
DataStax Enterprise 5.0 Installer-No Services and tarball installations | install_location/resources/cassandra/conf/cqlshrc.sample |
Cassandra package installations | /etc/cassandra/cqlshrc.sample |
Cassandra tarball installations | install_location/conf/cqlshrc.sample |