在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Python/ 數(shù)據(jù)庫(kù)連接錯(cuò)誤:20009, b'DB-Lib error message 20

數(shù)據(jù)庫(kù)連接錯(cuò)誤:20009, b'DB-Lib error message 20009

本地連接數(shù)據(jù)庫(kù)沒問題, 在 AWS 服務(wù)器上連接數(shù)據(jù)庫(kù)時(shí),報(bào)數(shù)據(jù)庫(kù)連接錯(cuò)誤: 20009

環(huán)境是 python3.5 用的是 pymssql 連接的 MS SQLServer

Traceback (most recent call last):
  File "pymssql.pyx", line 635, in pymssql.connect (pymssql.c:10734)
  File "_mssql.pyx", line 1902, in _mssql.connect (_mssql.c:21821)
  File "_mssql.pyx", line 637, in _mssql.MSSQLConnection.__init__ (_mssql.c:6581)
  File "_mssql.pyx", line 1630, in _mssql.maybe_raise_MSSQLDatabaseException (_mssql.c:17524)
_mssql.MSSQLDatabaseException: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (db.alphainsight.ai:1433)\nNet-Lib error during Connection timed out (110)\n')

  File "pymssql.pyx", line 641, in pymssql.connect (pymssql.c:10824)
pymssql.OperationalError: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (db.alphainsight.ai:1433)\nNet-Lib error during Connection timed out (110)\n')
回答
編輯回答
拼未來

謝謝 @Yujiaao 的提醒,已經(jīng)解決了。是同事把端口調(diào)整了。

2018年1月11日 04:25