This page is for administrators who need to connect PhixFlow to external databases using Driver Classes.
Overview
The PhixFlow application uses database driver jar files to communicate communicates with:
- the database on which it is installed.
- an external database from which it needs to load data.
This is configured using a Datasource in an analysis model.
To configure PhixFlow to communicate with a database, you mustPhixFlow needs:
...
- The appropriate database driver jar files
...
- in its Driver Class File Directory. This location is set in System Configuration.
...
- A Driver Class
...
- for the
...
- database. One driver class can have multiple Driver Class Files.
PhixFlow is installed with the database driver jar files (stored where) and preconfigured driver classes for the three databases on which it can be installed:
- MariaDB
- Microsoft (MS) SQL Server
- Oracle.
PhixFlow automatically uses the appropriate driver class to communicate with its own database. You can use these driver classes in a datasource. However, you cannot update their properties or see their driver class files.
Tip |
---|
You can use the MariaDB driver class to connect to a MySQL database. |
You may need to configure additional database drivers to support:
- other types of database
- different versions a database.
How to Configure a Driver
...
Class
- Find out which (usually JDBC) database drivers you require. This information is available in the documentation for your database. Also check the System Requirements and Compatibility page for supported versions. Communication Communication to a database may require multiple JDBC driver files.
- Download the required JDBC driver files from:
- the database supplier (recommended)
- or an open source repository, such as https://mvnrepository.com/.
- Save them to the directory that is set as the System Configuration → Driver Class File Directory specified in System Configuration. You need permission to add system files to do this.
- For each database, create one Driver Class, see Adding or Changing a Driver Class, below.
- In the driver class properties , → Driver Class File section, add all the JDBC driver files that the database requires; see Driver Classes and Driver Class File Properties, below.
- For each JDBC driver file specify its name. If it class file that is saved to a sub-directory of the Driver Class File Directory, specify it's relative path.
If you want to connect to any other database,
go get the database drivers
save them into the PhixFlow directory System Configuration / Driver Class File Directory
set up your own driver class/ driver class file(s) to point to the driver classes
There are a set of driver classes in the repository.
They are deprecated. Don’t use them.
They are not linked to any database driver jar files.
To configure communication with a database, you need:
- the appropriate database driver jar files saved to a location outside the tomcat directory.
- A Driver Class and Driver Class File set up in PhixFlow. Together these specify the location of the driver jar files
- we recommend that they stop using these driver entries and instead that they set up user-defined drivers
- in the short term they may install the driver files into $tomcat/lib, but they should be aware that we will remove the ability to do this in a future release
PhixFlow requires access to the database driver jar files in order to communicate with a database. Use the driver class properties to configure with the details of the database, its driver and the location of the jar files.
...
- MariaDB
- Microsoft (MS) SQL Server
- Oracle
PhixFlow uses the appropriate driver class to communicate with its own database.
. You can use these driver classes in a datasource. However, you cannot update or change the pre-configured driver classes, which are:
mariadb is functionally equivalent to mysql, and that in general you can use the mariadb driver to connect to a mysql database.
Deprecated Driver Classes
...
Deprecated Driver Classes
The repository includes the following, deprecated driver classes, for backwards compatibility.
- DB2
- Debug JDBC
- Google Big Query
- Hadoop Hive
- MySQL
- Netezza
- Sun ODBC Bridge
- Teradata
Note |
---|
These are drivers are read-only and do not connect to any database drivers. If you want to connect to one of these databases, we recommend you create a new driver class in which you can configure all the database drives needed. |
Adding or Changing a Driver Class
Anchor | ||||
---|---|---|---|---|
|
...
To add a new driver, right-click Driver Classes and select
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
Tip |
---|
You cannot change the pre-configured driver classes supplied with your PhixFlow installation. These have the System Defined property ticked. |
Driver Classes and Driver Class File
...
Properties
Anchor | ||||
---|---|---|---|---|
|
The driver classes configured in the repository populate the drop-down list in
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
Field | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Enter a unique name for the database driver, which will appear in the PhixFlow repository. | ||||||||||||||||
Driver Class Name | Enter the driver class name, which you will find in the driver documentation. For example, for MySQL, the driver name is: | ||||||||||||||||
System Defined | Read-only.
| ||||||||||||||||
Description | Optionally enter a description for the driver. |
Driver Class File
This section has a toolbar with standard buttons.
The grid contains a list of jar files and their file path. To lists the jar files for this driver class. Each database usually requires multiple jar files. To add a jar file to the list:
- Click
to open a the properties for a new Driver Class File Location.Insert excerpt _add _add nopanel true
(Driver Class File Location properties are only available from this grid. They are not listed in the repository.) In the Basic Settings section, set:
Field Description Name
Enter a unique name for the driver. Connector Jar File Location PhixFlow looks for jar files in the root Driver Class File Directory, that is specified in System Configuration. If this jar file is in the root directory, leave this field empty. If the jar file is in a subdirectory, specify the relative path.
Click
to save and close the properties for and return to the driver class file.Insert excerpt _finish _finish nopanel true
...
properies.
To remove a jar file from the grid, use the toolbar button
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
- The Connector Jar File Location configured in for the driver classes file.
tomcat/webapps/phixflow/WEB-INF/lib
tomcat/lib
.
...