Configuring Authentication in the Connection URL
You can configure the Simba Couchbase JDBC Driver to authenticate your connection to the database by providing a username and password directly to the connector.
You provide the configuration information to the connector in the connection URL. For more information about the syntax of the connection URL, see Building the Connection URL.
To configure authentication in the connection URL:
- Set the
AuthMech
property to2
. - Set the
UID
property to an appropriate user name for accessing the Couchbase server. - Set the
PWD
property to the password corresponding to the user name you provided.
For example:
jdbc:couchbase://localhost:8093/default2;AuthMech=2;
UID=skroob;PWD=12345;