Sql server 2008 Sonar与SQL Server 2008
我正在尝试使用SQL Server 2008安装Sonar 3.6和/或3.6.2。用于MySql到SQL Server转换的准备测试。运行时,我没有收到任何错误:Sql server 2008 Sonar与SQL Server 2008,sql-server-2008,sonarqube,Sql Server 2008,Sonarqube,我正在尝试使用SQL Server 2008安装Sonar 3.6和/或3.6.2。用于MySql到SQL Server转换的准备测试。运行时,我没有收到任何错误: sonar.sh console 控制台输出: Running sonar... wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.
sonar.sh console
控制台输出:
Running sonar...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2013-07-31 11:41:12.374:INFO:oejs.Server:jetty-7.6.11.v20130520
jvm 1 | JRuby limited openssl loaded. http://jruby.org/openssl
jvm 1 | gem install jruby-openssl for full support.
jvm 1 | 2013-07-31 11:41:43.963:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/alm/sonar-3.6.2/war/sonar-server/},file:/alm/sonar-3.6.2/war/sonar-server
jvm 1 | 2013-07-31 11:41:44.034:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:29000
我正在远程服务器上运行数据库。但这应该不是问题
我能够使用DBVisualizer使用相同的凭据访问服务器,因此我认为它应该通过sonar
我使用的是一个与声纳捆绑的驱动程序
当我尝试访问服务器时,得到的错误是基于web的
We're sorry, but something went wrong.
Please try back in a few minutes and contact support if the problem persists.
<%= link_to "Go back to the homepage", home_path %>
我拥有的sonar用户名拥有sonar数据库的所有权限
我可能错过了一些小事情,感谢您的帮助。解决了这个问题:
问题是我需要创建一个sonar模式,并将sonar用户与sonar数据库关联起来
我还确保sonar用户拥有创建数据库所需的权限。一切都很顺利
---------------------------------------------------------
# WEB SETTINGS - STANDALONE MODE ONLY
# These settings are ignored when the war file is deployed to a Java EE server.
#---------------------------------------------------------
# Listen host/port and context path (for example / or /sonar). Default values are 0.0.0.0:9000/.
sonar.web.host: localhost
sonar.web.port: 9500
sonar.web.context: /sonar
# Log HTTP requests. Deactivated by default.
#sonar.web.jettyRequestLogs: ../../logs/jetty-yyyy_mm_dd.request.log
#sonar.web.jetty.threads.min: 5
#sonar.web.jetty.threads.max: 50
#-----------------------------------------------------------------------
# DATABASE
#
# IMPORTANT : the embedded database H2 is used by default.
# It is recommended for tests only. Please use an external database
# for production environment (MySQL, Oracle, Postgresql, SQLServer)
#
#-----------------------------------------------------------------------
#----- Credentials
# Permissions to create tables and indexes must be granted to JDBC user.
# The schema must be created first.
sonar.jdbc.username: sonar
sonar.jdbc.password: sonar
#----- Embedded database H2
# Note : it does not accept connections from remote hosts, so the
# sonar server and the maven plugin must be executed on the same host.
# Comment the following line to deactivate the default embedded database.
#sonar.jdbc.url: jdbc:h2:tcp://localhost:19092/sonar
#sonar.jdbc.driverClassName: org.h2.Driver
# directory containing H2 database files. By default it's the /data directory in the sonar installation.
#sonar.embeddedDatabase.dataDir:/alm/sonar/apache-tomcat-7.0.41/data
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port: 19092
...
...
#----- Microsoft SQLServer
# The Jtds open source driver is available in extensions/jdbc-driver/mssql. More details on http://jtds.sourceforge.net
sonar.jdbc.url
jdbc:jtds:sqlserver://(REMOTE IP ADDRESS);instance=MSSQLSERVER;databaseName=SONAR;selectMethod=cursor;
# Optional properties
sonar.jdbc.driverClassName: net.sourceforge.jtds.jdbc.Driver