与postgres和pg8000的连接问题清除密码问题



我正在尝试连接:

conn = DBAPI.connect(host='sql2', user='XXX', password='XX', database='XX', socket_timeout=100, port=100)

我现在发现我得到以下错误:

pg8000.errors.InterfaceError: Authentication method 3 not supported by pg8000.

环顾四周,我明白了这可能意味着什么:

 3 = Cleartext pwd (not supported by pg8000)
这里有什么建议吗?

pg8000最新版本(1.9.14)支持密码认证

最新更新