jTDS から Microsoft の JDBC ドライバへの切り替え
このページでは、Microsoft SQL Sever へのアクセスに使用するドライバを jTDS から Microsoft SQL Server jDBC に変更する方法について説明します。
必要な操作について
If Bitbucket Data Center and Server was configured to use Microsoft SQL Server by following the steps outlined in Connect Bitbucket to SQL Server, no change is necessary. However, if Bitbucket was configured to use Microsoft SQL Server by manually entering a JDBC URL, the system will lock on startup if the driver class and URL are not manually updated.
手順
In the home directory, bitbucket.properties
must be edited to change the JDBC driver and URL. The existing configuration should look similar to this:
jdbc.driver=net.sourceforge.jtds.jdbc.Driver
jdbc.url=jdbc:jtds:sqlserver://localhost:1433;databaseName=stash;
jdbc.user=stashuser
jdbc.password=secretpassword
The JDBC URL above is in the format constructed by Bitbucket when connecting Bitbucket to SQL Server and will automatically be updated to a URL compatible with Microsoft's driver, with no change required on the administrator's part. If the URL contains additional properties, such as domain=, it will need to be manually updated.
Microsoft の SQL Server ドライバを使用するには、上記の設定を次のように更新します。
jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc.url=jdbc:sqlserver://localhost:1433;databaseName=stash;
jdbc.user=stashuser
jdbc.password=secretpassword
新しい URL で使用する正確な値はこのドキュメントの範囲外であり、置き換える jTDS 設定に基づいて選択する必要があります。
追加情報
The new JDBC driver class is: com.microsoft.sqlserver.jdbc.SQLServerDriver
jTDS ドライバの JDBC URL 形式は SourceForge (http://jtds.sourceforge.net/faq.html#urlFormat) のドキュメントに記載されています。
Microsoft の SQL Serverドライバの jDBC URL 形式は MSDN (http://msdn.microsoft.com/en-us/library/ms378428.aspx) に、追加プロパティのドキュメントは http://msdn.microsoft.com/en-us/library/ms378988.aspx に記載されています。