📅  最后修改于: 2020-11-22 09:09:23             🧑  作者: Mango
Cassandra CQLsh代表Cassandra CQL shell。 CQLsh指定如何使用Cassandra命令。安装后,Cassandra将提供一个提示的Cassandra查询语言外壳程序(cqlsh)。它方便用户与其通信。
Cassandra命令在CQLsh上执行。看起来像这样:
启动CQLsh:
CQLsh提供了很多选项,您可以在下表中看到它们:
Options | Usage |
---|---|
help | This command is used to show help topics about the options of CQLsh commands. |
version | it is used to see the version of the CQLsh you are using. |
color | it is used for colored output. |
debug | It shows additional debugging information. |
execute | It is used to direct the shell to accept and execute a CQL command. |
file= “file name” | By using this option, cassandra executes the command in the given file and exits. |
no-color | It directs cassandra not to use colored output. |
u “username” | Using this option, you can authenticate a user. The default user name is: cassandra. |
p “password” | Using this option, you can authenticate a user with a password. The default password is: cassandra. |