SQLSTATE[08001]: [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: No connection could be made because the target machine actively refused it

后端 未结 2 1016
北海茫月
北海茫月 2021-02-10 14:25

My doctrine repository code doesn\'t work, while I am able to access the database and read table data normally.

I get this stacktrace:

E         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-10 14:59

    Sql Server Configuration Manager -> Sql Server Network Configuration -> Protocols For -> TCP/IP ->

    I changed the following

    IpAll
    TCP Dynamic Ports 49226
    TCP Port
    

    To:

    IpAll
    TCP Dynamic Ports
    TCP Port          1433
    

    Not sure what TCP Dynamic Ports are and why they were configured.

提交回复
热议问题