Prerequisites
- Ensure the Python driver is installed. For more, see DataStax PHP Driver for Apache Cassandra.
- collect_legacy_driver_info
- Get your Client ID_ and _Client Secret by creating your application token for your username and password.
- Copy the certificate files from the Astra DB secure connect bundle to /etc/ssl/certs/astra-secure-connect . This folder should contain the ca.cert , cert , and key files.
- Replace the <hostname> with your Astra DB database hostname.
- Replace the <port> with your Astra DB database port.
- Replace <username> and <password> with the Astra DB database Client ID_ and _Client Secret.
- 1
Example
- 1
In the example above, the following variables are used:
- <hostname> is 602c8f3c-ea96-41b0-a7c1-6c6c5bdd1f34-us-east1.db.astra.datastax.com
- <port> is 31575
- <username> is john.smith
- <password> is `jsP@ssw0rd`