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..
求救!!!折腾几天了。。。
微软mssql linux版无法连接
-
- 帖子: 63
- 注册时间: 2017-04-28 19:08
- 系统: ubuntu16.04LTS
-
- 帖子: 63
- 注册时间: 2017-04-28 19:08
- 系统: ubuntu16.04LTS
Re: 微软mssql linux版无法连接
补充一下这是mssql2017linux版 https://docs.microsoft.com/zh-cn/sql/li ... ect-ubuntu
-
- 论坛版主
- 帖子: 5229
- 注册时间: 2007-01-14 16:23
Re: 微软mssql linux版无法连接
终端执行
sudo systemctl status mssql-server
sudo netstat -tlna
看下输出
sudo systemctl status mssql-server
sudo netstat -tlna
看下输出
-
- 帖子: 63
- 注册时间: 2017-04-28 19:08
- 系统: ubuntu16.04LTS
Re: 微软mssql linux版无法连接
搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?
-
- 帖子: 1
- 注册时间: 2019-08-08 18:47
Re: 微软mssql linux版无法连接
请问怎么解决的呀
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 微软mssql linux版无法连接
当然不能,关掉了如何通讯?
- qy117121
- 论坛版主
- 帖子: 50538
- 注册时间: 2007-12-14 13:40
- 系统: Winbuntu
- 来自: 志虚国乌由市
- 联系:
Re: 微软mssql linux版无法连接
渠月 · QY
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu
Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用
邮箱 chuan@ubuntu.org.cn
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu
Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用
邮箱 chuan@ubuntu.org.cn