简体   繁体   中英

“Drop keyspace” command in cassandra

i created a key space named 'hello' in Cassandra and started using it(use command). so the commands were typed after cqlsh:hello> in the cql. i then dropped the key space hello, but still it is showing cqlsh:hello> at beginning of each command. why so ?

The keyspace is gone, but you need to reset your session context with the 'use' command.

cqlsh:test> create keyspace xyz with replication = {'class':'SimpleStrategy', 'replication_factor':1} ;
cqlsh:test> use xyz;
cqlsh:xyz> drop keyspace xyz;
cqlsh:xyz> describe keyspace
Keyspace 'xyz' not found.
cqlsh:xyz> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM