簡體   English   中英

IBM-db 與 Google Colab 的連接

[英]Connction of IBM-db with Google Colab

這是問題所在,我從系統收到以下錯誤消息,有人可以幫我解決嗎? 這是我的輸入代碼

# Enter your Db2 credentials in the connection string below
# Recall you created Service Credentials in Part III of the first lab of the course in Week 1
# i.e. from the uri field in the Service Credentials copy everything after db2:// (but remove the double quote at the end)
# for example, if your credentials are as in the screenshot above, you would write:
# %sql ibm_db_sa://my-username:my-password@hostname:port/BLUDB?security=SSL
# Note the ibm_db_sa:// prefix instead of db2://
# This is because JupyterLab's ipython-sql extension uses sqlalchemy (a python SQL toolkit)
# which in turn uses IBM's sqlalchemy dialect: ibm_db_sa

%sql ibm_db_sa://xxxxxx77:xxxxxxxxxxxxxxxZR@ba99a9e6-d59e-4883-8fc0-d6a8c9f7a08f.c1ogj3sd0tgtu0lqde00.databases.appdomain.cloud:31321/bludb?security=SSL

用戶名和密碼是正確的,因為我使用 IBM-db API 連接方法,它很好並且成功連接到 IBM 雲數據庫

Connection info needed in SQLAlchemy format, example:
               postgresql://username:password@hostname/dbname
               or an existing connection: dict_keys([])
Can't load plugin: sqlalchemy.dialects:ibm_db_sa
Connection info needed in SQLAlchemy format, example:
               postgresql://username:password@hostname/dbname
               or an existing connection: dict_keys([])

這是我在 google colab 上嘗試的兩張圖片,安裝 ibm_db 和其他要求, 在此處輸入圖像描述 這是圖像顯示它沒有通過它在此處輸入圖像描述

藍光數據庫;安全=SSL; 兩個半冒號起作用。 我和 co-lab 有同樣的問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM