Pyodbc错误:08004 - 服务器拒绝连接

2024-06-17 12:21:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我不熟悉python和SolidDB。我想就我遇到的错误寻求帮助。虽然凭据是正确的(我想),但我仍然被服务器拒绝了。这是堆栈跟踪。在

[root@DW700 standalone]# python
Python 2.7.8 (default, Oct 28 2014, 03:45:51)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyodbc
>>> cnxn = pyodbc.connect('DRIVER=SolidDB;SERVER=tcp 1964;DATABASE=dba;PWD=password')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
pyodbc.Error: ('08004', '[08004] [unixODBC]Server rejected the connection (14505) (SQLDriverConnect)')

Tags: 服务器default堆栈onhat错误redroot
2条回答

您的服务器参数看起来不正确。请尝试类似SERVER=hostname,PORT=1964hostname:1964之类的方法。在

Here您可以看到凭据可能是错误的。在

相关问题 更多 >