在macOS上使用SQL Server创建Node.js应用程序

在macOS上使用SQL Server创建Node.js应用程序,sql,node.js,command-prompt,Sql,Node.js,Command Prompt,我正在安装SQLCMD。我的命令: sqlcmd -S 127.0.0.1 -U sa -P your_password 但是有一个错误显示 Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2726. Sqlcmd:

我正在安装SQLCMD。我的命令:

sqlcmd -S 127.0.0.1 -U sa -P your_password
但是有一个错误显示

Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2726.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specifc 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.

有人能帮我吗???

您需要在sqlcmd中指定服务器上的端口

-S[协议:]服务器[实例名称][,端口]