Skip to content

Configuring JDBC driver and connection in Query2Report

Yogesh Deshpande edited this page Feb 27, 2019 · 1 revision

First steps involved in configuring Query2Report web application is to register drivers and create connections.

Registering driver requires providing a driver class and uploading the driver jar file. The driver jar files are database vendor specific and you need to choose right version of JDBC jar file depending upon the version of the database server. Following document provide more information about driver class and jar files. These driver jar files will be uploaded to {CATALINA_BASE}/webapps/q2r/WEB-INF/lib.

Once driver is registered the second step is to create a connection. The connection uses one of the drivers registered. While creating a connection user would also need to specify the database URL, username and password. Admin users should also ensure that the username/password is for read only access.

Below are some examples on driver class, JDBC URLs for commonly used database vendors.

1. MySQL

2. Oracle

3. SQL Server

4. Sybase jTDS

5. PostgreSQL

Clone this wiki locally