All instances, created inside CirrusGrid Cloud, are operated as independent containers. To establish connection to a database from the application, deployed within application server, you need to set a connection string for it, using either:
Note: Specifying localhost within a connection string will not work for establishing connection between application and database.
Depending on the engine that powers your environment, refer to one of the sections below:
Look through the table of database types to find the appropriate DB connection code for your application:
For the UTF-8 encoding, modify your connection string according to this:
“jdbc:{dbtype}://{dbtype}{node_id}-{environment_name}.{hoster_domain}/{dbname}?useUnicode=yes&characterEncoding=UTF-8”
Based on the used DB type, check out the connection code examples below and adjust your application appropriately:
Tip: It is required to specify the host string without http://. The appropriate address and credentials are located in the email you’ve received upon database creation.
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.