MariaDB

In this article, we will discuss how to connect to the MariaDB data source from inside Power BI using the Power Query M language code. Power BI is a business analytics service provided by Microsoft that allows users to create interactive visualizations and business intelligence reports. It is a powerful tool that helps businesses to gain insights from their data.

What is MariaDB?

MariaDB

MariaDB is a community-driven fork of the MySQL relational database management system. It is an open-source, high-performance, and reliable database system that is widely used for web applications, e-commerce, and online transactions. MariaDB is compatible with MySQL and provides additional features, performance improvements, and bug fixes.

Power Query M Language Code

Power Query is a data connection and transformation tool that is integrated into Power BI. It allows users to connect to a wide range of data sources, transform and shape the data, and load it into the Power BI data model. Power Query uses the M language code to perform data transformations.

To connect to the MariaDB data source from inside Power BI, we need to use the Power Query M language code. The following steps will guide you on how to connect to the MariaDB data source using Power Query.

Step 1: Install the MariaDB ODBC Driver

The first step is to install the MariaDB ODBC driver on your computer. The ODBC driver allows Power BI to connect to the MariaDB database. You can download the MariaDB ODBC driver from the MariaDB website. Once you have downloaded the driver, follow the installation instructions to install it on your computer.

Step 2: Open Power BI Desktop

MariaDB

After installing the MariaDB ODBC driver, open Power BI Desktop. Power BI Desktop is a tool that allows you to create and publish Power BI reports.

Step 3: Connect to the MariaDB Data Source

In Power BI Desktop, click on the “Get Data” button on the Home tab. In the “Get Data” window, select “Other” and then “ODBC” as the data source.

![Get Data Window](get-data-window.png)

In the “From ODBC” window, select the “Machine Data Source” tab and then click on the “New” button to create a new data source.

![From ODBC Window](from-odbc-window.png)

In the “Create New Data Source” window, select the MariaDB ODBC driver from the list of available drivers.

![Create New Data Source Window](create-new-data-source-window.png)

Enter the connection details for the MariaDB database, including the server name, database name, username, and password.

![MariaDB Connection Details Window](MariaDB-connection-details-window.png)

Once you have entered the connection details, click on the “Test” button to test the connection. If the connection is successful, click on the “OK” button to create the new data source.

Step 4: Transform and Load the Data

After creating the new data source, select the tables or views that you want to import into Power BI. You can transform the data using the Power Query Editor.

![Power Query Editor Window](power-query-editor-window.png)

Once you have transformed the data, you can load it into the Power BI data model by clicking on the “Close & Apply” button.

Conclusion

In this article, we have discussed how to connect to the MariaDB data source from inside Power BI using the Power Query M language code. We have outlined the steps required to install the MariaDB ODBC driver, connect to the MariaDB data source, and transform and load the data. Using Power BI, businesses can gain valuable insights from their data and make informed decisions.

Power BI Training Courses by G Com Solutions (0800 998 9248)

Contact Us

    Subject

    Your Name (required)

    Company/Organisation

    Email (required)

    Telephone

    Training Course(s)

    Your Message

    Upload Example Document(s) (Zip multiple files)

    Similar Posts