Linux command
scylladb 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start CQL shell
cqlsh
Connect to ScyllaDB node
cqlsh [hostname] [9042]
Connect with authentication
cqlsh -u [username] -p [password]
Execute CQL from file
cqlsh -f [script.cql]
Check node status
nodetool status
View ScyllaDB info
scylla --version
Check cluster status
nodetool describecluster
Flush memtables
nodetool flush
说明
ScyllaDB uses Cassandra-compatible tools (cqlsh and nodetool) with the same commands and CQL syntax. ScyllaDB is a C++ rewrite of Cassandra designed for lower latency and higher throughput. cqlsh executes CQL statements. Keyspaces, tables, and query syntax match Cassandra. ScyllaDB adds lightweight transactions (LWT) improvements and materialized views. nodetool manages cluster operations. ScyllaDB extends it with toppartitions for identifying hot spots that cause load imbalance. ScyllaDB's shard-per-core architecture eliminates locking between CPU cores. The --smp flag controls core allocation. Configuration differs from Cassandra, using scylla.yaml. ScyllaDB Alternator provides DynamoDB-compatible API, accessible via AWS SDK tools instead of cqlsh.
FAQ
What is the scylladb command used for?
ScyllaDB uses Cassandra-compatible tools (cqlsh and nodetool) with the same commands and CQL syntax. ScyllaDB is a C++ rewrite of Cassandra designed for lower latency and higher throughput. cqlsh executes CQL statements. Keyspaces, tables, and query syntax match Cassandra. ScyllaDB adds lightweight transactions (LWT) improvements and materialized views. nodetool manages cluster operations. ScyllaDB extends it with toppartitions for identifying hot spots that cause load imbalance. ScyllaDB's shard-per-core architecture eliminates locking between CPU cores. The --smp flag controls core allocation. Configuration differs from Cassandra, using scylla.yaml. ScyllaDB Alternator provides DynamoDB-compatible API, accessible via AWS SDK tools instead of cqlsh.
How do I run a basic scylladb example?
Run `cqlsh` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more scylladb examples?
This page includes 8 examples for scylladb, plus related commands for nearby Linux tasks.