February 11, 2016 at 4:22 am
Hi,
I'm trying Flyway, but I' can't connect to Sql Server instance.
Does anyone knows how to correctly configure connection to sql server?
I'm using:
flyway.url= jdbc:jtds:sqlserver://[serverName]:[myPortNumber];instance=[mySqlServerInstance];databaseName=[myDatabaseName];
excluding the []
I'm getting:
ERROR: Unable to obtain Jdbc connection from DataSource (jdbc:jtds:sqlserver://[serverName]:[myPortNumber];instance=[mySqlServerInstance];databaseName=[myDatabaseName];) for user 'myUser': Network error IOException: Connection refused: connect
Anyone knows how to configure it?
Thanks in advance
February 11, 2016 at 4:28 am
I don't know Flyway, but maybe this link can point you to the right connection.
Did you already try to connect from your host to the SQL server without using Flyway (like using Powershell)?
February 11, 2016 at 5:46 am
It's solved.
The connection string format is correct.
The sql server instance to which I was trying to connect was stopped..
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply