ODBC Driver for MySQL

Connecting QlikView to MySQL via ODBC Driver



Connecting to MySQL from QlikView using ODBC Driver for MySQL

This tutorial describes how to connect and configure QlikView to retrieve data from MySQL for further analysis. QlikView is a data visualization tool that connects and pulls data from different popular databases like MySQL, MongoDB, Oracle, SQL Server, Postgres, etc. to present it in a single view. The business intelligence platform identifies relationships in your data and discovers patterns and opportunities to support your decision making.

QlikView supports the ODBC connectivity interface for communication with external data sources. An ODBC data source must be configured for the database you want to access. You can create an ODBC connection using a DSN during the ODBC driver installation or later.

To connect to an ODBC data source from QlikView using our driver for MySQL, perform the steps below:

  1. Open the QlikView client application and click File > New. Close the Getting Started wizard and open File > Edit Script (CTRL+E).
  2. QlikView Edit Script

  3. In the Data tab, choose ODBC from the Database drop-down and click Connect. Select the Data Source you created earlier, type in the User ID and Password if your database is password-protected. You can test the connection by choosing Test Connection. The Connection Test succeeded message should appear. Click OK to connect to your data source.
  4. QlikView Connect Data Source

  5. To retrieve the data from your data source, you can enter an SQL query and press F5. You will be suggested to choose fields to be displayed.
  6. QlikView Run Query

    QlikView Select Fields

  7. Alternatively, you can click Select, and QlikView will show you the database structure window where you can compose a SELECT statement for the data to be fetched. You can choose a different database from the database drop-down list. Select the necessary tables and fields. You can retrieve date from multiple tables and fields by selecting them and clicking Add. When you are ready with your SELECT statement, click OK. You will get back to the main script editor with your SQL statement. Press F5 to execute the script and select the fields to be displayed in QlikView.
  8. Once the data has been fetched, you can choose a table layout to present the data in a table. Choose Layout > New Sheet Object > Table Box. Select the fields to be added to the tablebox and click OK.
  9. QlikView Table Box

    QlikView ODBC Database

© 2015-2024 Devart. All Rights Reserved. Request Support ODBC Forum Provide Feedback