Connect to Astra DB and create a database
✅ Create an application token with the Database Administrator role to access Astra DB. Skip this step is you already have a token.
- Sign in (or sign up) to your Astra account at astra.datastax.com
- Create an application token with the Database Administrator role by following these instructions
You can reuse the same token in our other labs, too.
✅ Setup Astra CLI by providing your application token:
astra setup
✅ List your existing Astra DB databases:
astra db list
✅ Create database data-modeling
and keyspace order_management_data
if they do not exist:
astra db create data-modeling -k order_management_data --if-not-exist --wait
This operation may take a bit longer when creating a new database or resuming an existing hibernated database.
✅ Verify that database data-modeling
is ACTIVE
and keyspace order_management_data
exists:
astra db get data-modeling
✅ Start the CQL shell and connect to database data-modeling
and keyspace order_management_data
:
clear
astra db cqlsh data-modeling -k order_management_data