Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages/data-warehouse/how-to/connect-applications.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ To connect your deployment with BI tools, refer to the [dedicated documentation]
</TabsTab>
<TabsTab label="HTTPS">
```sh
echo 'SELECT 1' | curl 'https://scwadmin:<PASSWORD>@<YOUR_DEPLOYMENT_ID>.dtwh.<REGION>.scw.cloud:443' -d @-
echo 'SELECT 1' | curl 'https://scwadmin:<PASSWORD>@<YOUR_DEPLOYMENT_ID>.dtwh.<REGION>.scw.cloud:8443' -d @-
```
<Message type="note">
`curl` only works with SQL queries, and does not allow direct connection to your Data Warehouse for ClickHouse® deployment.
Expand All @@ -83,7 +83,7 @@ To connect your deployment with BI tools, refer to the [dedicated documentation]

client = clickhouse_connect.get_client(
host="<YOUR_DEPLOYMENT_ID>.dtwh.<REGION>.scw.cloud",
port=443,
port=8443,
username="scwadmin",
password="<PASSWORD>",
)
Expand Down Expand Up @@ -141,7 +141,7 @@ To connect your deployment with BI tools, refer to the [dedicated documentation]

void (async () => {
const client = createClient({
url: 'https://f133556f-8578-486f-be7f-49f7da08b728.dtwh.fr-par.scw.cloud:443',
url: 'https://f133556f-8578-486f-be7f-49f7da08b728.dtwh.fr-par.scw.cloud:8443',
username: 'scwadmin',
password: 'PASSWORD'
})
Expand Down Expand Up @@ -185,7 +185,7 @@ To connect your deployment with BI tools, refer to the [dedicated documentation]
public class Main {
public static void main(String[] args) throws SQLException, ClassNotFoundException {
Class.forName("com.clickhouse.jdbc.ClickHouseDriver");
String url = "jdbc:ch://scwadmin:PASSWORD@f133556f-8578-486f-be7f-49f7da08b728.dtwh.fr-par.scw.cloud:443/default?ssl=true";
String url = "jdbc:ch://scwadmin:PASSWORD@f133556f-8578-486f-be7f-49f7da08b728.dtwh.fr-par.scw.cloud:8443/default?ssl=true";
try (Connection con = DriverManager.getConnection(url); Statement stmt = con.createStatement()) {
ResultSet result_set = stmt.executeQuery("SELECT 1 AS one");
while (result_set.next()) {
Expand Down