简体   繁体   中英

Failed to connect to MFQ:1433 nodejs

In my local machine there is no connection issue, but after I pushed to the server and run the node js project it throws an exception:

Failed to connect to MFQ:1433 - Could not connect (sequence)

  • Node js connected to the sql server throw the mssql module
  • I have started sql server browser
  • In my local machine it working perfectly

截屏

Hi so this because the SQL Server Browser service is not running on the database server, and port 1433 on the database server must be reachable.

To check the status of the SQL Server Agent:

  • Log on to the Database Server computer with an Administrator account.
  • Start Microsoft SQL Server Management Studio.
  • In the left pane, verify the SQL Server Agent is running.
  • If the SQL Server Agent is not running, right-click SQL Server Agent, and then click Start.
  • Click Yes.
  • On the File menu, click Exit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM