Connecting Frappe Cloud Database to Microsoft Power BI
You can connect your Frappe Cloud database to Microsoft Power BI using the MariaDB ODBC Connector. This allows you to build interactive dashboards, reports, and visualizations using your ERP data.
Overview
The setup process involves creating a read-only database user, installing the MariaDB ODBC Connector, configuring an ODBC data source, and connecting it to Power BI Desktop.
Step 1: Create a Database User
Before connecting Power BI, create a read-only database user for your Frappe Cloud site.
- Create a read-only database user using the Database Users and Permission Manager.
- Wait for the configuration to complete.
- Click View Credential to obtain the connection details.
You will need the following information during the ODBC configuration:
- Server Name
- Port
- Database Name
- Username
- Password
Step 2: Install the MariaDB ODBC Connector
Download and install the MariaDB ODBC Connector v3.1.x.
Important
Install version 3.1.x only. Avoid version 3.2.x, as it contains a known issue that prevents it from working correctly with Microsoft Power BI.
Complete the installation using the default installer options.
Step 3: Configure the ODBC Data Source
After installing the connector, create an ODBC Data Source.
- Open ODBC Data Sources as an administrator.
- Use the version that matches the installed connector:
- ODBC Data Sources (64-bit) for the 64-bit connector.
- ODBC Data Sources (32-bit) for the 32-bit connector.
- Open the User DSN tab.
- Click Add.
- Select MariaDB ODBC 3.1 Driver.
Configure Connection Details
Enter the following information:
- Server Name
- Port
- Username
- Password
- Database Name
Note
The Test DSN button may fail at this stage. This is expected because additional SSL settings still need to be configured.
Continue through the remaining configuration pages without making any changes until you reach the SSL configuration screen.
Configure SSL Settings
On the SSL configuration page, enable the following options:
- Verify Certificate
- Force TLS Use
After enabling both options, click Finish to save the ODBC connection.
Step 4: Connect Power BI to the Database
After creating the ODBC connection, configure Power BI Desktop.
- Open Power BI Desktop.
- Click Get Data.
- Search for and select ODBC.
- Click Connect.
- Select the ODBC Data Source you created earlier.
Authentication
If prompted for authentication:
- Select Windows from the authentication options.
- Click Connect.
Once the connection is established, Power BI will display all available database tables along with preview data.
Next Steps
After successfully connecting your database, you can:
- Import ERP data into Power BI.
- Create reports and dashboards.
- Build interactive visualizations.
- Analyze business data using Power BI’s reporting tools.
Best Practice
Always connect using a read-only database user to protect your production database while allowing Power BI to safely access and analyze your data.