Articles in this section

Connect Bold Reports to OLAP Databases StarRocks & ClickHouse via MySQL

Published:
Updated:

Bold Reports supports connectivity to modern OLAP databases such as StarRocks and ClickHouse by using the built-in MySQL data connector.

Why the MySQL Connector Works

Both ClickHouse and StarRocks implement a MySQL wire-protocol endpoint. As a result, MySQL clients, including the Bold Reports MySQL data source, can connect without requiring a native driver.

Default Ports:

  • ClickHouse: 9004
  • StarRocks: 9030

MySQL Connector in Bold Reports

Prerequisites

Before creating a data source, ensure that:

  • Bold Reports Server or Designer is installed.
  • Your StarRocks or ClickHouse instance is running.
  • You have the following connection details:
    • Server host name or IP address
    • Port number
    • Database name
    • Username and password
  • The database MySQL interface is enabled:
    • ClickHouse MySQL interface → Port 9004
    • StarRocks MySQL protocol → Port 9030 (FE query port)

image.png


ClickHouse — MySQL Interface
Explains the MySQL wire protocol and port exposure.

Connect Bold Reports to ClickHouse

ClickHouse provides a MySQL wire-protocol endpoint on port 9004, which can be used by Business Intelligence tools. This allows Bold Reports to connect using the MySQL data connector.

Steps to Configure the Connection

  1. Open Data Sources in Bold Reports.
  2. Select Add Data SourceMySQL.
  3. Enter the required connection details.

Example Connection Settings for ClickHouse

Field Value
Name ClickHouse
Server Name 127.0.0.1
Port 9004
Username boldreports
Password Bold@123
Database boldreports_ch

image.png

Sample Query

SELECT * FROM employees;

Expected Output Example

ID Name
1 Alison
2 Bobby

image.png


StarRocks - Quick Start / SQL over MySQL protocol
Explains how to connect using MySQL-compatible clients through port 9030.

Connect Bold Reports to StarRocks

StarRocks exposes a MySQL-compatible frontend on port 9030, enabling seamless connectivity through the MySQL connector.

Steps to Configure the Connection

  1. Create a new MySQL data source.
  2. Enter the required connection details.

Example Connection Settings for StarRocks

Field Value
Name StarRocks
Server Name 127.0.0.1
Port 9030
Username boldreportsuser
Password Bold@123
Database boldreports_sr

image.png

Sample Query

SELECT * FROM employees;

Example Output

ID Name
1 Alice
2 Bob

image.png


Troubleshooting

  1. Connection Refused on ClickHouse Port 9004

Ensure that the MySQL interface is enabled and listening on port 9004. Some deployments may require explicitly setting the following configuration:

<mysql_port>9004</mysql_port>

Also, verify that the user has permission to connect over the network.

  1. “Access Denied” When Selecting a Database in StarRocks

Grant permissions at the database scope (or db.*) so tools that specify the database in the connection can list tables successfully.

  1. Firewall or NAT Restrictions

Ensure the required ports are open between Bold Reports and the database host:

  • 9004 for ClickHouse
  • 9030 for StarRocks

Summary

Bold Reports can seamlessly connect to high-performance OLAP databases such as ClickHouse and StarRocks using the built-in MySQL connector, thanks to their MySQL-compatible interfaces.

After establishing the connection, you can:

  • Create datasets
  • Execute MySQL-style SQL queries
  • Build interactive reports

This approach allows organizations using modern OLAP engines to leverage Bold Reports without requiring custom drivers or additional integrations.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied