To use MySQL Connector, you must download and install the JDBC and ODBC drivers on your Windows or Linux machine where the Secure Agent is installed.
Before you use MySQL Connector, complete the following tasks:
1Install the MySQL JDBC driver.
2Install the MySQL ODBC driver.
Installing MySQL JDBC driver
Before you use MySQL Connector, install the MySQL JDBC driver and MySQL ODBC driver on the Windows or Linux machine where you installed the Secure Agent.
Perform the following steps to install the MySQL JDBC drivers on Windows or Linux:
3Select the Operating System as Platform Independent.
4Download the .zip or .tar file based on your Windows or Linux system.
5Extract the downloaded file and copy the mysql-connector-java-<version>.jar file.
6Paste the mysql-connector-java-<version>.jar file in the following directory on the Secure Agent machine:
- On Windows: <Secure Agent installation directory>\apps\Data_Integration_Server\ext\drivers
- On Linux: <Secure Agent installation directory>/apps/Data_Integration_Server/ext/drivers
7Set the MySQL_JDBC_DRIVER_JARNAME parameter to mysql-connector-java-<version>.jar for the Data Integration Server service in the Secure Agent's system configuration details in Administrator.
8Restart the Secure Agent.
Installing MySQL ODBC driver
Before you use MySQL Connector, you must install the MySQL ODBC driver on the Windows or Linux machine where you installed the Secure Agent.
Installing MySQL ODBC driver on Windows
Perform the following steps to install the MySQL ODBC driver on Windows:
3Select the Operating System as Microsoft Windows.
4Select the OS Version as Windows (x86, 64-bit).
5Download the ZIP Archive mysql-connector-odbc-noinstall-<version>-winx64.zip file.
Note: Do not use the MSI installer because it removes the existing MySQL ODBC driver versions from the system.
6Extract the .zip file.
7Open the Command Prompt as an administrator and navigate to the extracted .zip file location.
8Run the following command in the command prompt: Install.bat
After you install the MySQL ODBC driver, check if the installed MySQL ODBC Unicode Driver name appears as one of the available ODBC drivers under the ODBC Data Source Administrator (64-bit) dialog box:
The following image shows the MySQL ODBC 8.0 Unicode Driver driver name in the ODBC Data Source Administrator (64-bit) dialog box when you try to create a new data source:
Installing MySQL ODBC driver on Linux
Perform the following steps to install the MySQL ODBC driver on Linux: