You are viewing the RapidMiner Studio documentation for version 9.1 -Check here for latest version
Using the MySQL Connector/J (JDBC driver)
RapidMiner Studio comes bundled with theMariaDB Connector/J– a driver that allows to connect to both MariaDB and MySQL databases. If you want to connect to MySQL databases using the official driver, you need to manually download and configure theMySQL Connector/J.
This article will walk you through how to:
Install the MySQL JDBC Connector/J
Download the latest MySQL Connector/J from the officialMySQL website.
Both the compressed TAR archive and the ZIP archive will work.
The connector itself is a single file named
mysql-connector-java-X.X.XX-bin.jar
. Extract this file from the downloaded archive to a location on your hard drive that is accessible from RapidMiner Studio.In RapidMiner Studio, open theManage Database Driversdialog from the连接menu.
Click onAdd创建一个新条目the following properties:
Select the connector extracted in the second step as
Jar file
.Please pay special attention to the correct
URL前缀
andDriver class
(an incorrect class might be selected by default).Close the dialog by clicking onSave.
Check which connector is used
To check whether the MariaDB Connector/J or the MySQL Connector/J is used, open theShow Database Drivers…dialog from the连接menu:
If the driver classes for both the bundled and the newly created connectors iscom.mysql.jdbc.Driver
the MySQL Connector/J is being used. If it isorg.mariadb.jdbc.Driver
, the bundled MariaDB Connector/J is used.