Connecting to databases
Note: You must create a Cassandra database or be granted access to a database by another user before establishing connections.
To connect to Cassandra databases, obtain the database credentials from the DataStax Astra console, and use one of the following tools to make the connection.
Choices | Options |
---|---|
I want to use my database right now | Write queries, visualize results, and inspect the database schema using DataStax Studio, which is integrated into your Cassandra database. |
I like using Docker | Run DataStax Enterprise (DSE) in a Docker container and connect to your Cassandra database using cqlsh . |
I want to use DSE or DDAC | Install DSE or DataStax Distribution of Apache Cassandra (DDAC) locally or on a remote machine to interact with the database and run queries using the CQL shell (cqlsh ). |
I want to use the DataStax Drivers | Initialize one of the DataStax Drivers to manage database connections for your application. |
- Connecting to databases with DataStax Studio
Use DataStax Studio to connect with Cassandra databases created using the DataStax Astra console. - Connecting to databases using Docker
Use a DataStax Docker container running DSE to connect to a database. - Connecting to databases using CQL shell (cqlsh)
Configure cqlsh to automatically log in to a database and select a keyspace. - Connecting to Cassandra databases using DataStax Drivers
Use one of the DataStax Drivers to connect to your Cassandra database.