FreeTDS hangs indefinitely after Microsoft SQL Express 2012 Install(安装 Microsoft SQL Express 2012 后,FreeTDS 无限期挂起)
问题描述
当我尝试连接到服务器时,FreeTDS 无限期挂起:
FreeTDS hangs indefinitely when I try to connect to a server:
C:\FreeTDS\bin>tsql -H localhost -p 1433
locale is "English_United States.1252"
locale charset is "CP1252"
using default charset "CP1252"
(nothing else is displayed, can only exit with ^C)
当我运行 tsql -S
时出现相同的行为.
Identical behaviour occurs when I run tsql -S <servername>
.
我最近卸载了 Microsoft SQL Server Management Studio,然后安装了 Express 版.与 tsql -H localhost -p 1433
的连接在卸载/安装之前工作.
I recently uninstalled Microsoft SQL Server Management Studio, and then installed the Express edition. Connection with tsql -H localhost -p 1433
worked before the uninstall/install.
运行 tsql -C
产生:
Compile-time settings (established with the "configure" script)
Version: freetds v0.91.98
freetds.conf directory: /mingw/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.0
iODBC: no
unixodbc: yes
SSPI "trusted" logins: yes
Kerberos: yes (Heimdal 1.5.3)
SSL encryption: yes (OpenSSL 1.0.1e)
更多信息:
我正在运行以下 SQL 相关服务:
I have the folowing SQL-related services running:
- SQL 全文过滤器守护程序启动器 (SQLEXPRESS)
- SQL Server (SQLEXPRESS)
- SQL Server 浏览器
- SQL Server 报告服务 (SQLEXPRESS)
- SQL Server VSS 编写器
我尝试重新安装 FreeTDS.
I have tried reinstalling FreeTDS.
我在 SQL Server 配置管理器中为 SQLEXPRESS 启用了 TCP/IP.
I have enabled TCP/IP for SQLEXPRESS in the Sql Server Configuration Manager.
推荐答案
tsql
命令挂起,因为服务器没有在默认端口上运行.我通过运行 C:\>netstat -na | 发现了这一点.找到1433"
,它在端口 1433 上没有显示正在侦听.
The tsql
command was hanging because the server was not running on the default port. I found this out by running C:\>netstat -na | find "1433"
, which showed nothing LISTENING on port 1433.
我是这样解决问题的:
- 打开Sql Server 配置管理器"
- 转到SQL Server 网络配置 > SERVER 的协议"
- 右键单击TCP/IP",选择属性",转到IP 地址"选项卡
- 在IPAll"下将TCP Port"设置为所需的端口号
- 单击确定",然后重新启动 SQL Server 服务.
这篇关于安装 Microsoft SQL Express 2012 后,FreeTDS 无限期挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:安装 Microsoft SQL Express 2012 后,FreeTDS 无限期挂起


基础教程推荐
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01