gpt4 book ai didi

coldfusion - Db2 JDBC 驱动程序加密方法或身份验证方法

转载 作者:行者123 更新时间:2023-12-02 16:20:01 25 4
gpt4 key购买 nike

我正在尝试将 Db2 数据库与 ColdFusion 连接。我正在使用 IBM Db2 on Cloud,但收到以下错误:

Connection verification failed for data source: "DatabaseName" java.sql.SQLNonTransientConnectionException: [Macromedia][DB2 JDBC Driver]The encryptionMethod or authenticationMethod specified is not supported by the DB2 server you are connecting to. The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][DB2 JDBC Driver]The encryptionMethod or authenticationMethod specified is not supported by the DB2 server you are connecting to

最佳答案

一般来说,可能是没有添加AuthenticationMethod属性导致的。以下是一些相关信息。

使用 DataDirect 驱动程序连接到 Db2 Warehouse
https://www.ibm.com/support/knowledgecenter/en/SSULQD_1.7.2/com.ibm.nz.hdp.doc/t_hdp_datadirect.html

<connectionURL>jdbc:ibm:db2://<your_hostname>:<port>;databaseName=bludb;AuthenticationMethod=encryptedPassword</connectionURL>

不支持指定的 C&DS 加密方法或身份验证
https://www.ibm.com/support/pages/cds-encryptionmethod-or-authentication-specified-not-supported

Other AuthenticationMethods are:
AuthenticationMethod=clearText (the default),
AuthenticationMethod= encryptedPassword,
AuthenticationMethod=encryptedPasswordAES,
AuthenticationMethod=encryptedUIDPassword,
AuthenticationMethod= encrytpedUIDPasswordAES,

希望这有帮助。

关于coldfusion - Db2 JDBC 驱动程序加密方法或身份验证方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52550142/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com