当我使用以下命令时,我得到Bad Request: Keyspace 'ks_test' does not exist
,有什么帮助吗?我确实从opscenter看到了这个密钥空间。
USE ks_test;
Bad Request: Keyspace 'ks_test' does not exist
运行以下命令以查看密钥空间的列表:
DESC KEYSPACES;
此外,如果您键入USE
然后按 tab,则 cqlsh 应列出所有有效的键空间名称。
键空间可能没有命名为 ks_test
,而是一些区分大小写的名称,如 KS_test
,在这种情况下,您需要引用名称,如下所示:
USE "KS_test";