SQL server named instance ? (OD-1960)
Łukasz Stachowiak opened 2 years ago

Is connecting to a SQL server named instance supported ?

I'm trying the following connection strings, but I'm getting exception in both cases;

hibernate.connection.url=jdbc:sqlserver://localhost\\SQLSERVER2019DEV;databaseName=OneDev 17:06:13 WARN io.onedev.server.ServerConfig - Connection failed (host: localhost\SQLSERVER2019DEV, port: 1433) java.net.UnknownHostException: localhost\SQLSERVER2019DEV

hibernate.connection.url=jdbc:sqlserver://localhost;instanceName=SQLSERVER2019DEV;databaseName=OneDev 2024-06-19 17:04:44,464 WARN [WrapperSimpleAppMain] io.onedev.server.ServerConfig Connection failed (host: localhost, port: 1433) java.net.ConnectException: Connection refused: connect

Is that supported and if so where am I going wrong?

Thank you in advance. Lukasz

  • Robin Shen commented 2 years ago

    Please use MySQL/PostgreSQL instead. We may drop SQL Server support in future versions due to unable to test against with production SQL server (currently only test with express edition)

  • Łukasz Stachowiak commented 2 years ago

    Thank you for prompt reply.

    That's what we did. MySQL works fine.

    Kind regards, Łukasz

  • Łukasz Stachowiak changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • Łukasz Stachowiak commented 2 years ago

    Answered.

issue 1/1
Type
Question
Priority
Normal
Assignee
Not assigned
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1960
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover