You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mysql/flexible-server/connect-with-powerbi-desktop.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,13 @@ ms.date: 09/01/2022
11
11
12
12
# Import data from Azure Database for MySQL Flexible Server in Power BI
13
13
14
-
>[!NOTE]
15
-
> This article applies to Power BI Desktop only. Currently Power Query online or Power BI Service is **not supported**.
16
-
17
-
With Power BI Desktop you can visually explore your data through a free-form drag-and-drop canvas, a broad range of modern data visualizations, and an easy-to-use report authoring experiences. You can import directly from the tables or import from a SELECT query. In this quickstart you will learn how to connect with Azure Database for MySQL Flexible Server with Power BI Desktop.
14
+
With Power BI Desktop, you can visually explore your data through a free-form drag-and-drop canvas, a broad range of modern data visualizations, and an easy-to-use report authoring experiences. You can import directly from the tables or import from a SELECT query. In this quickstart, you learn how to connect with Azure Database for MySQL Flexible Server with Power BI Desktop.
18
15
19
16
## Prerequisites
20
17
21
18
1. Install [Power BI desktop](https://aka.ms/pbidesktopstore).
22
19
2. If you connect with MySQL database for the first time in Power BI, you need to install the Oracle [MySQL Connector/NET](https://dev.mysql.com/downloads/connector/net/) package.
23
-
3. Skip the steps below if MySQL server has SSL disabled. If SSL is enabled then follow the steps below to install the certificate.
20
+
3. Skip the steps below if MySQL server has SSL disabled. If SSL is enabled, then follow the steps below to install the certificate.
24
21
1. Download the [SSL public certificate](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem).
25
22
2. Install the SSL certificate in Trusted Root certification authorities store by following these steps:
26
23
1. Start **certmgr.msc** Management Console on your Windows system.
@@ -32,28 +29,34 @@ With Power BI Desktop you can visually explore your data through a free-form dra
32
29
You can open your database in Power BI desktop from Azure portal with a few clicks.
33
30
34
31
1. Sign in to the [Azure portal](https://portal.azure.com/).
35
-
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you have created (such as **mydemoserver**).
32
+
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you've created (such as **mydemoserver**).
36
33
3. Select the server name.
37
34
4. From the server's **Overview** panel, Select **Power BI** setting from the left-hand menu.
38
-
:::image type="content" source="./media/connect-with-powerbi-desktop/use-azure-db-for-mysql-with-power-bi-desktop.png" alt-text="Screenshot of viewing Power BI in Azure Portal to connect to the database.":::
35
+
36
+
:::image type="content" source="./media/connect-with-powerbi-desktop/use-azure-db-for-mysql-with-power-bi-desktop.png" alt-text="Screenshot of viewing Power BI in Azure portal to connect to the database.":::
37
+
39
38
5. Select a database from the drop down, for example *contactsdb* and then select **Get started**.
40
39
6. Download the Power BI desktop file *contactsdb.pbids*.
41
-
:::image type="content" source="./media/connect-with-powerbi-desktop/use-azure-db-for-mysql-with-power-bi-desktop.png" alt-text="Screenshot of viewing Power BI in Azure Portal to connect to the database.":::
42
-
7. Open the file in Power Bi desktop.
40
+
41
+
:::image type="content" source="./media/connect-with-powerbi-desktop/use-azure-db-for-mysql-with-power-bi-desktop.png" alt-text="Screenshot of viewing Power BI in Azure portal to connect to the database.":::
42
+
43
+
7. Open the file in Power BI desktop.
43
44
8. Switch to **Database** tab to provide the username and password for your database server. **Note Windows authentication is not supported for Azure database for MySQL Flexible Server.**
45
+
44
46
:::image type="content" source="./media/connect-with-powerbi-desktop/enter-credentials.png" alt-text="Screenshot of entering credentials to connect with MySQL database.":::
47
+
45
48
9. In **Navigator**, select the data you require, then either load or transform the data.
46
49
47
50
:::image type="content" source="./media/connect-with-powerbi-desktop/navigator.png" alt-text="Screenshot of navigator to view MySQL tables.":::
48
51
49
52
## Connect to MySQL database from Power Query Desktop manually
50
53
51
-
You can connect to Azure database for MySQL Flexible server with Power BI desktop directly. To make the connection, follow the steps below.
54
+
You can connect to Azure database for MySQL Flexible server with Power BI desktop directly.
52
55
53
56
### Get the MySQL connection information
54
57
55
58
1. Sign in to the [Azure portal](https://portal.azure.com/).
56
-
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you have created (such as **mydemoserver**).
59
+
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you've created (such as **mydemoserver**).
57
60
3. Select the server name.
58
61
4. From the server's **Overview** panel, make a note of the **Server name** and **Server admin login name**. If you forget your password, you can also reset the password from this panel.
59
62
5. Go to **Databases** page to find the database you want to connect to. Power BI desktop supports adding a connection to a single database and hence providing a database name is required for importing data.
@@ -62,7 +65,7 @@ You can connect to Azure database for MySQL Flexible server with Power BI deskto
62
65
63
66
1. Select the **MySQL database** option in the connector selection.
64
67
65
-
:::image type="content" source="./media/connect-with-powerbi-desktop/add-mysql-connection.png" alt-text="Screenshot of adding a mysql connection in power BI.":::
68
+
:::image type="content" source="./media/connect-with-powerbi-desktop/add-mysql-connection.png" alt-text="Screenshot of adding a mysql connection in Power BI.":::
66
69
67
70
3. In the **MySQL database** dialog, provide the name of the server and database.
68
71
@@ -106,7 +109,7 @@ Power Query Desktop provides a set of advanced options that you can add to your
106
109
| --------------- | ----------- |
107
110
| Command timeout in minutes | If your connection lasts longer than 10 minutes (the default timeout), you can enter another value in minutes to keep the connection open longer. This option is only available in Power Query Desktop. |
108
111
| SQL statement | For information, go to [Import data from a database using native database query](/power-query/native-database-query). |
109
-
| Include relationship columns | If checked, includes columns that might have relationships to other tables. If this box is cleared, you won’t see those columns. |
112
+
| Include relationship columns | If checked, includes columns that might have relationships to other tables. If this box is cleared, you cannot see those columns. |
110
113
| Navigate using full hierarchy | If checked, the navigator displays the complete hierarchy of tables in the database you're connecting to. If cleared, the navigator displays only the tables whose columns and rows contain data. |
111
114
112
115
Once you've selected the advanced options you require, select **OK** in Power Query Desktop to connect to your MySQL database.
0 commit comments