python用pymssql连接数据库时出现未知错误的问题
importpymssqlconn=pymssql.connect(host="localhost",user="sa",password="pwd",database=...
import pymssql
conn = pymssql.connect(host="localhost",user="sa",password="pwd",database="production")
运行后,错误代码如下
Traceback (most recent call last):
File "I:/py/m.py", line 2, in <module>
conn = pymssql.connect(host="localhost",user="sa",password="pwd",database="production")
File "pymssql.pyx", line 577, in pymssql.connect (pymssql.c:9000)
OperationalError: (20009, 'Net-Lib error during Unknown error')
求大神解答,小弟初学,赶紧不尽! 展开
conn = pymssql.connect(host="localhost",user="sa",password="pwd",database="production")
运行后,错误代码如下
Traceback (most recent call last):
File "I:/py/m.py", line 2, in <module>
conn = pymssql.connect(host="localhost",user="sa",password="pwd",database="production")
File "pymssql.pyx", line 577, in pymssql.connect (pymssql.c:9000)
OperationalError: (20009, 'Net-Lib error during Unknown error')
求大神解答,小弟初学,赶紧不尽! 展开
展开全部
conn = pymssql.connect(host=r"localhost",user=r"sa",password=r"pwd",database=r"production")
stack overflow 上有个类似的问题 有个答案是这样的 你试试 没用过mssql
stack overflow 上有个类似的问题 有个答案是这样的 你试试 没用过mssql
追问
求链接。。
追答
没解决?
http://stackoverflow.com/questions/15706078/pymssql-python-connection-string
也不知道百度让不让发链接…另外这个好像被墙了 你试试吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询