Prerequisites
- Ensure the Ruby driver is installed.For more, see DataStax Ruby Driver for Apache Cassandra.
- Collect the required information for Connecting with legacy drivers.
- 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`