It helped me a bit.
The connection string I used was (passed as parameters for the span on the command line).
Note also that the name mydatabasename must already exist.
./flyway migrate -url=jdbc:jtds:sqlserver://localhost:1433/mydatabasename -user=myuser -password=mypassword -baselineVersion=269 -baselineDescription="Base version" -outOfOrder=true -baselineOnMigrate=
Some part was missing, because I did not start the SQL Server browser and may not have configured TCP correctly:
See the SQL Server section here . After installation is complete, enable TCP / IP:
Launch Sql Server Configuration Manager Go to SQL Server Network Configuration → Protocols for SQLEXPRESS Enable TCP / IP TCP / IP Properties → IP Addresses → IPAll Dynamic TCP Ports: Empty TCP Port: 1433 Then enable remote access:
Launch Sql Server Configuration Manager SQL Server Services → SQL Server Browser → Properties → Service Tab Startup Mode: Automatic OK SQL Server Browser → SQL Server Start → Reboot
source share