2

我使用 Brainman 的 ODBC 驱动程序将 Golang 与 FreeTDS 一起使用(http://code.google.com/p/odbc

一切都很好,直到我对盒子进行压力测试。

然后我收到以下错误:

{01000} [unixODBC][FreeTDS][SQL Server]无法打开套接字 SQLDriverConnect:{08001} [unixODBC][FreeTDS][SQL Server]无法连接到数据源

似乎当我尝试针对 FreeTDS / unixODBC 驱动程序启动多个并发请求时,它失败了。这是可行的,还是 unixODBC 和 FreeTDS 在生产环境中不可用?

4

1 回答 1

0

This sounds similar to an issue that I ran into. FreeTDS/ODBC on CentOS7 connecting to an SQLServer2005 database. I ended up creating 6 separate FreeTDS/ODBC DNS entries to have 6 discreet database connections available to use in order to resolve this issue (they were all just numbered duplicates of each other--$db, $db2, $db3, etc). It's not a great solution, but it does work (I was migrating a really old system, so my options were limited). I'd be very interested if there is a better solution than mine.

于 2019-05-01T00:25:47.347 回答