VOOZH about

URL: https://www.cdata.com/kb/tech/mysql-odbc-dbxtra.rst

⇱ Build Dashboards with MySQL Data in DBxtra


Build Dashboards with MySQL Data in DBxtra

πŸ‘ Jerod Johnson
Jerod Johnson
Director, Technology Evangelism
Create dynamic dashboards and perform analytics based on MySQL data in DBxtra.

The CData ODBC driver for MySQL enables access to live data from MySQL under the ODBC standard, allowing you work with MySQL data in a wide variety of BI, reporting, and ETL tools and directly, using familiar SQL queries. This article shows how to connect to MySQL data as a generic ODBC Data Provider and create charts, reports, and dashboards based on MySQL data in DBxtra.

Connect to MySQL Data

  1. If you have not already done so, provide values for the required connection properties in the data source name (DSN). You can configure the DSN using the built-in Microsoft ODBC Data Source Administrator. This is also the last step of the driver installation. See the "Getting Started" chapter in the Help documentation for a guide to using the Microsoft ODBC Data Source Administrator to create and configure a DSN.

    The CData Provider supports connecting to on-premises and cloud-hosted versions of MySQL such as Amazon RDS for MySQL, Google Cloud SQL for MySQL, Azure Database for MySQL, or Oracle MySQL HeatWave. The Server and Port properties must be set to a MySQL server. If IntegratedSecurity is set to false, then User and Password must be set to valid user credentials. Optionally, Database can be set to connect to a specific database. If not set, tables from all databases will be returned.

    SSH Connectivity for MySQL

    You can use SSH (Secure Shell) to authenticate with MySQL, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).

    SSH Connections to MySQL in Password Auth Mode

    To connect to MySQL via SSH in Password Auth mode, set the following connection properties:

    • User: MySQL User name
    • Password: MySQL Password
    • Database: MySQL database name
    • Server: MySQL Server name
    • Port: MySQL port number like 3306
    • UserSSH: "true"
    • SSHAuthMode: "Password"
    • SSHPort: SSH Port number
    • SSHServer: SSH Server name
    • SSHUser: SSH User name
    • SSHPassword: SSH Password

    SSH Connections to MySQL in Public Key Auth Mode

    To connect to MySQL via SSH in Password Auth mode, set the following connection properties:

    • User: MySQL User name
    • Password: MySQL Password
    • Database: MySQL database name
    • Server: MySQL Server name
    • Port: MySQL port number like 3306
    • UserSSH: "true"
    • SSHAuthMode: "Public_Key"
    • SSHPort: SSH Port number
    • SSHServer: SSH Server name
    • SSHUser: SSH User name
    • SSHClientCret: the path for the public key certificate file

    When you configure the DSN, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.

  2. Open the DBxtra application and in the New menu click Project and name the Project. πŸ‘ Creating a New Project.
  3. Select ODBC Connection as the Data Connection Type. πŸ‘ Creating an ODBC Connection.
  4. Click the browse option () for the Data Source.
  5. In the Data Link Properties window, select Microsoft OLE DB Provider for ODBC Drivers on the Provider tab. πŸ‘ Select the Provider
  6. On the Connection tab, select the Data Source Name and the initial catalog to use (CData). πŸ‘ Select the Provider
  7. Name the Connection and select the appropriate User Groups. πŸ‘ Connection name and User Groups
  8. Double-click the Connection from within the Project to connect to the data. πŸ‘ Connecting to the data.

Create a Dashboard with MySQL Data

You are now ready to create a dashboard with MySQL data.

  1. Right-click Report Objects under the Project and select New Report Object. πŸ‘ Creating a Report Object for the Project
  2. In the new Report Object, click the link to create the Query.
  3. In the Select Data Connection window, select the newly created data connection. πŸ‘ Select Data Connection
  4. On the Query tab, expand the connection objects and select the Tables, Views, and specific columns you wish to include in your dashboard. You can specify search requirements and even create complex queries which include JOINs and aggregations. πŸ‘ Selecting the data/building the query.
  5. On the Dashboard tab, select the visualizations and features for your dashboard. Assign the data values from the query to the appropriate fields for the Dashboards items (Values, Series, etc.) πŸ‘ Building the Dashboard.

With a new Dashboard created, you are ready to begin analysis of MySQL data. Thanks to the ODBC Driver for MySQL, you can refresh the Dashboard and immediately see any changes made at the source. In the same way, you can create and view Reports with live, up-to-date MySQL data.

Ready to get started?

Download a free trial of the MySQL ODBC Driver to get started:

 Download Now

Learn more:

πŸ‘ MySQL Icon
MySQL ODBC Driver

The MySQL ODBC Driver is a powerful tool that allows you to connect with live MySQL data, directly from any applications that support ODBC connectivity.

Access MySQL databases from virtually anywhere through a standard ODBC Driver interface.