Use an ODBC/MySQL connector to stream MariaDB tables into Power BI for live dashboards.
Linking MariaDB to Power BI lets analysts build interactive reports on operational data without exporting CSVs.A live connection refreshes visuals on each dataset refresh cycle.
Install Power BI Desktop, the MySQL ODBC 8.0 driver (works for MariaDB), and verify that the MariaDB server allows remote TCP connections on port 3306.
Open ODBC Data Sources → Add → MySQL ODBC 8.0 Unicode Driver → enter Data Source Name, server host, port 3306, database name, and credentials.Test the connection before saving.
Select Get Data → ODBC → choose the DSN → Connect. Pick DirectQuery for live updates or Import for cached snapshots, then select the required tables.
Click Transform Data → Advanced Options → enter a SQL statement such as SELECT * FROM Orders WHERE order_date > CURRENT_DATE - INTERVAL '30 days'
.This limits data volume and speeds refreshes.
After loading, open Model view. Drag Orders.customer_id
to Customers.id
and OrderItems.product_id
to Products.id
to enable cross-table measures.
Publish the report to Power BI Service, open Settings → Datasets → Scheduled Refresh, provide gateway credentials, and set the frequency (up to 8× daily on Pro).
Create a read-only MariaDB user, restrict its privileges to the reporting schema, and enforce SSL.Rotate passwords regularly and log all access.
.
No. Power BI supports DirectQuery only for specific sources. Use Import mode and schedule frequent refreshes.
Yes. In the DSN, click SSL → provide client cert, key, and CA files, or set OPTION=3 to require encrypted transport.
Store timestamps in UTC in MariaDB and convert in Power BI using the DateTimeZone functions for consistent reporting.