分页: 1 / 1

微软mssql linux版无法连接

发表于 : 2017-08-05 19:55
ubun_lover
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..

求救!!!折腾几天了。。。

Re: 微软mssql linux版无法连接

发表于 : 2017-08-05 19:57
ubun_lover
补充一下这是mssql2017linux版 https://docs.microsoft.com/zh-cn/sql/li ... ect-ubuntu

Re: 微软mssql linux版无法连接

发表于 : 2017-08-05 21:23
onlylove
终端执行
sudo systemctl status mssql-server
sudo netstat -tlna
看下输出

Re: 微软mssql linux版无法连接

发表于 : 2017-08-06 13:21
ubun_lover
搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?

Re: 微软mssql linux版无法连接

发表于 : 2019-08-08 18:48
loop1905
请问怎么解决的呀

Re: 微软mssql linux版无法连接

发表于 : 2020-05-23 17:35
九天星
ubun_lover 写了: 2017-08-06 13:21 搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?
当然不能,关掉了如何通讯?

Re: 微软mssql linux版无法连接

发表于 : 2020-05-23 18:20
qy117121
九天星 写了: 2020-05-23 17:35
ubun_lover 写了: 2017-08-06 13:21 搞掂了谢谢,还想问一下我只是本地运行sql,1433端口可以关闭吗?
当然不能,关掉了如何通讯?
3年前的回复啊。。。