简体   繁体   English

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

[英]Pyodbc error: 08004 - Server rejected the connection

I am new to python and SolidDB. 我是python和SolidDB的新手。 I would like to seek help about the error that I'm getting. 我想寻求有关我遇到的错误的帮助。 Although the credentials are right (I think), still I am rejected by the server. 尽管凭据是正确的(我认为),但是服务器仍然拒绝了我。 Here is the stack trace. 这是堆栈跟踪。

[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)')

Your SERVER parameter does not look right. 您的SERVER参数看起来不正确。 Try something like SERVER=hostname,PORT=1964 or hostname:1964 instead. 尝试使用SERVER=hostname,PORT=1964hostname:1964

在这里您可以看到凭证可能是错误的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM