MySQL Connector > Introduction to MySQL Connector > Administration of MySQL Connector
  

Administration of MySQL Connector

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:
    1Click the following link to download the MySQL JDBC driver: https://downloads.mysql.com/archives/c-j/
    2Select the required Product Version.
    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:
    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:
    1Click the following link to download the MySQL ODBC driver: https://downloads.mysql.com/archives/c-odbc/
    2Select the required Product Version.
    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:
You can view the MySQL ODBC 8.0 Unicode Driver.

Installing MySQL ODBC driver on Linux

Perform the following steps to install the MySQL ODBC driver on Linux:
    1Click the following link to download the MySQL ODBC driver: https://downloads.mysql.com/archives/c-odbc/
    2Select the required Product Version.
    3Select the Operating System as Linux- Generic.
    4Select the OS Version as All.
    5Download the Linux - Generic (glibc 2.12) (x86, 64-bit) file.
    6Extract the downloaded file to a local directory in your system.
    Note: When you extract the file, ensure that you copy all files from the downloaded driver package.
    7Edit the <Secure Agent installation directory>/odbcinst.ini file and add the following values:
    [MySQL ODBC 8.0 Unicode Driver]
    Description = ODBC for MySQL
    Driver = <Extracted folder path>/lib/libmyodbc8w.so
    Setup = <Extracted folder path>/lib/libmyodbc8w.so
    FileUsage = 1
    In the Driver and Setup fields, you must specify the file path of the libmyodbc8w.so file that you extracted to the local directory in your system.