How do I use MySQL as a data source in Cloud Reporting?

The Bold Reports® Designer supports connecting MySQL database using SQL Query.

Supported Server Versions: MySQL (5.1, 5.5, 5.6, 5.7, and 8.0)

What does the MySQL connector support?

The Bold Reports® Cloud Web Report Designer connects to MySQL with the following options.

Item Supported
Server versions MySQL 5.1, 5.5, 5.6, 5.7, and 8.0
Default port 3306
Query design Query mode only. You write and execute a SQL query.
Connection options Basic options (server, port, username, password, database) or advanced options (your own connection string)
Authentication types (advanced options) Authentication, Prompt, None
Save password Embeds the credentials in the report saved in the Report Server. A downloaded report does not keep them.

How to choose the MySQL data source

In the Web Report Designer, you choose MySQL in the connection type panel after you click NEW DATA in the DATA configuration panel.

  1. Click the Data icon in the configuration panel. Data icon configuration panel
  2. In the DATA configuration panel, click NEW DATA. NEW DATA button in the DATA configuration panel
  3. In the connection type panel, select MySQL. MySQL selected in the data source connection types panel

Create MySQL data source with basic options

When you create a new data source, the NEW DATASOURCE panel opens with basic options.

  1. In the Name field, enter a data source name without special characters.
  2. In the Server Name field, enter the remote server name, such as myserver.domain.com.
  3. In the Port field, enter the port number. The default port is 3306.
  4. In the Username field, enter the username of your MySQL server.
  5. In the Password field, enter the password of your MySQL server.
  6. Enable the Save password option to embed the credentials within the report when saving it in Bold Reports® Report Server.
  7. Choose or enter an existing database, for example, Northwind. MySQL basic options with server, port, credentials, and database
  8. Click Connect to open the query design pane, and then enter and execute your SQL query. The results appear in the preview grid. MySQL query design pane with query results in the preview grid

    Only query mode is supported for MySQL data source.

  9. Click Finish to save the data source and start designing the report. Saved MySQL data source in the DATA configuration panel list

Create MySQL data source with advanced options

To connect to MySQL with advanced options, click Advanced Options in the New Data panel.

Advanced Options link in the MySQL New Data panel

The panel switches to advanced options, where you build your own connection string.

Enter the connection string, and then enter the username and password of the MySQL server.

MySQL advanced options with connection string, username, and password

Click Connect to open the query design pane, and then enter and execute your SQL query. The results appear in the preview grid. MySQL query results in the query design pane preview grid

Only query mode is supported for MySQL data source.

Click Finish to save the data source and start designing the report. New MySQL data source in the report data list

Click Basic Options to switch back to the basic connection settings.

Basic Options link to switch back to MySQL basic settings

Authentication types for advanced connection

The MySQL advanced options support three authentication types: Authentication (database credentials), Prompt (prompted credentials), and None (no credentials).

MySQL authentication types list with database, prompt, and none

Authentication: Supply a user name and password, such as a database login, to access the database. The credentials are passed to the data source for authentication.

MySQL database authentication with username and password fields

Enable the Save Password option to embed the credentials within the report when saving it in Report Server.

When you download the report, the credentials are not saved with the report data.

Prompt: When the connection uses prompted credentials, each user who accesses the report must enter a user name and password on preview to retrieve the data.

Prompt authentication selected for MySQL prompted credentials

None: Choose None when the connection string already provides the authentication details or any other arguments required to connect to the data source.

Frequently asked questions

Can I drag and drop MySQL tables instead of writing SQL?

No. Only query mode is supported for the MySQL data source. After you click Connect, enter your SQL query in the query design pane and execute it to preview the data.

Why can’t Cloud Reporting connect to my MySQL server?

Cloud Reporting reaches your MySQL server from fixed IP addresses. Allow inbound connections from those addresses in your database firewall or security group. See IP addresses to whitelist for remote database access.

Are my MySQL credentials kept when I download a report?

No. Save Password embeds the MySQL credentials only when you save the report in the Report Server. When you download the report, the credentials are not saved with it.

How do I make each viewer enter their own MySQL credentials?

Use Advanced Options and set the authentication type to Prompt. Each user who opens the report then enters a user name and password on preview to retrieve the data.

Why is MySQL missing from the connection type panel?

An administrator may have disabled the MySQL connector. Only the connectors enabled on the Settings page of the Report Server appear when you create a data source. See Connectors settings.

Data connectors

Create an embedded data source

Create an embedded dataset

Define query parameters

IP addresses to whitelist for remote database access