MikiBelavista
MikiBelavista

Reputation: 2758

How to end the CQL shell?

I am learning Cassandra right now.The problem is here

[cqlsh 5.0.1 | Cassandra 3.11.1 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh> q
   ... quit
   ... HELP
   ... !
   ... EXIT
   ... 
   ... quit
   ... !
   ... EXIT
   ... 

How can I quit the shell?

Upvotes: 2

Views: 4132

Answers (4)

AlexRadik
AlexRadik

Reputation: 1

I just registred for this answer) I find in docs, use command EXIT for it) Just uppercase

Upvotes: -1

Aaron
Aaron

Reputation: 57843

Yeah, what's happening above, is that cqlsh thinks that you're entering a multi-line command:

aploetz@cqlsh> q
   ... quit
   ... EXIT
   ... exit
   ... ;
Bad Request: line 1:0 no viable alternative at input 'q'
aploetz@cqlsh> 

Note that when I provide a semi colon (;) it gets me back to the cqlsh command prompt. Then exit will work fine (even without a semicolon).

aploetz@cqlsh> exit
$

Upvotes: 1

loi
loi

Reputation: 1

Official page also writes the exit command...

Upvotes: 0

Chris Lohfink
Chris Lohfink

Reputation: 16430

try

<control-c>exit<enter>

Upvotes: 4

Related Questions