Migration to SQL Server in TeamCity: driver for source database not found

I am trying to migrate an instance of TeamCity to SQL Server. I followed the instructions in the documents for setting up an external database .

Now I go through Migrate to an external database and run the maintainDb command:

.\maintainDB.cmd migrate -A c:\users\jkodroff\.buildserver -T C:\Users\jkodroff\.BuildServer\config\database.properties

And I get this output:

Java executable is found: 'C:\Program Files\Java\jdk1.6.0_35\bin\java.exe'.
Using logs directory C:\TeamCity\logs
TeamCity maintenance tool. Copyright 2013 JetBrains s.r.o. All Rights Reserved.

Command line arguments: migrate -A c:\users\jkodroff\.buildserver -T C:\Users\jkodroff\.BuildServer\config\database.properties
Using TeamCity data directory: C:\Users\jkodroff\.BuildServer
Using database settings from the TeamCity data directory for source database: C:\Users\jkodroff\.BuildServer\config\database.properties
Using source database
        database type: MSSQL
        connection string: jdbc:jtds:sqlserver://localhost:1433/teamcity
Cannot proceed with 'migrate' command: A driver for the source database not found. Please ensure you have driver jars in C:\Users\jkodroff\.BuildServer\lib\jdbc.
Critical error has occurred during command execution.

I checked that both sqljdbc.jarand sqljdbc4.jarare in that directory, so what gives?

+4
source share
1 answer

, sqljdbc.jar sqljdbc4.jar, , JDBC- Microsoft SQL Server, jTDS. , JDBC Microsoft SQL Server jTDS JDBC. .

-: sqljdbc.jar ( Java 5), ​​ sqljdbc4.jar ( Java 6 ), ; - ..

+8

Source: https://habr.com/ru/post/1530444/


All Articles