微软mssql linux版无法连接

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS

微软mssql linux版无法连接

#1

帖子 ubun_lover » 2017-08-05 19:55

ubuntu16, 通过数据库管理软件链接mssql显示错误:
通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“拒绝连接。请验证连接属性。确保 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP 连接。”。

通过终端命令行 sqlcmd -S localhost -U SA -P '<YourPassword>' 连接显示错误:
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : TCP Provider: Error code 0x2749.
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..

求救!!!折腾几天了。。。
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS

Re: 微软mssql linux版无法连接

#2

帖子 ubun_lover » 2017-08-05 19:57

补充一下这是mssql2017linux版 https://docs.microsoft.com/zh-cn/sql/li ... ect-ubuntu
onlylove
论坛版主
帖子: 5213
注册时间: 2007-01-14 16:23

Re: 微软mssql linux版无法连接

#3

帖子 onlylove » 2017-08-05 21:23

终端执行
sudo systemctl status mssql-server
sudo netstat -tlna
看下输出
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS

Re: 微软mssql linux版无法连接

#4

帖子 ubun_lover » 2017-08-06 13:21

搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?
loop1905
帖子: 1
注册时间: 2019-08-08 18:47

Re: 微软mssql linux版无法连接

#5

帖子 loop1905 » 2019-08-08 18:48

请问怎么解决的呀
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 微软mssql linux版无法连接

#6

帖子 九天星 » 2020-05-23 17:35

ubun_lover 写了: 2017-08-06 13:21 搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?
当然不能,关掉了如何通讯?
头像
qy117121
论坛版主
帖子: 50528
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 微软mssql linux版无法连接

#7

帖子 qy117121 » 2020-05-23 18:20

九天星 写了: 2020-05-23 17:35
ubun_lover 写了: 2017-08-06 13:21 搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?
当然不能,关掉了如何通讯?
3年前的回复啊。。。
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
回复