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
+42-20Lines changed: 42 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,47 +11,69 @@ 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.
27
24
2. Right-click **Trusted Root Certification Authorities** and select **Import**.
28
25
3. Follow the prompts in the wizard to import the root certificate (for example, DigiCertGlobalRootCA.crt.pem) and click OK.
29
26
30
-
## Get MySQL server information
27
+
## Connect with Power BI desktop from Azure portal
28
+
29
+
You can open your database in Power BI desktop from Azure portal with a few clicks.
30
+
31
+
1. Sign in to the [Azure portal](https://portal.azure.com/).
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**).
33
+
3. Select the server name.
34
+
4. From the server's **Overview** panel, Select **Power BI** setting from the left-hand menu.
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
+
38
+
5. Select a database from the drop down, for example *contactsdb* and then select **Get started**.
39
+
6. Download the Power BI desktop file *contactsdb.pbids*.
40
+
41
+
:::image type="content" source="./media/connect-with-powerbi-desktop/download-powerbi-desktop-file-for-database.png" alt-text="Screenshot of downloading Power BI file for the database.":::
42
+
43
+
7. Open the file in Power BI desktop.
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
+
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
+
48
+
9. In **Navigator**, select the data you require, then either load or transform the data.
49
+
50
+
:::image type="content" source="./media/connect-with-powerbi-desktop/navigator.png" alt-text="Screenshot of navigator to view MySQL tables.":::
31
51
32
-
Get the connection information needed to connect to the Azure Database for MySQL Flexible Server. You need the fully qualified server name and sign in credentials.
52
+
## Connect to MySQL database from Power BI Desktop
53
+
54
+
You can connect to Azure database for MySQL Flexible server with Power BI desktop directly without the use of Azure portal.
55
+
56
+
### Get the MySQL connection information
33
57
34
58
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**).
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**).
36
60
3. Select the server name.
37
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.
38
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.
39
63
40
-
##Connect to MySQL database from Power Query Desktop
64
+
### Add MySQL connection in Power BI desktop
41
65
42
-
To make the connection, take the following steps:
43
-
44
66
1. Select the **MySQL database** option in the connector selection.
45
67
46
-
:::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.":::
47
69
48
-
3. In the **MySQL database** dialog, provide the name of the server and database.
70
+
2. In the **MySQL database** dialog, provide the name of the server and database.
49
71
50
-
:::image type="content" source="./media/connect-with-powerbi-desktop/signin.png" alt-text="Screeshot of Signing in to Power BI.":::
72
+
:::image type="content" source="./media/connect-with-powerbi-desktop/signin.png" alt-text="Screeshot of Signing in to Power BI.":::
51
73
52
74
3. Select the **Database** authentication type and input your MySQL credentials in the **User name** and **Password** boxes. Make sure to select the level to apply your credentials to.
53
75
54
-
:::image type="content" source="./media/connect-with-powerbi-desktop/enter-credentials.png" alt-text="Screenshot of entering credentials to connect with MySQL database.":::
76
+
:::image type="content" source="./media/connect-with-powerbi-desktop/enter-credentials.png" alt-text="Screenshot of entering credentials to connect with MySQL database.":::
55
77
56
78
4. Once you're done, select **OK**.
57
79
@@ -67,13 +89,13 @@ To make the connection, take the following steps:
67
89
68
90
2. In the **MySQL database** dialog, provide the name of the server and database.
69
91
70
-
:::image type="content" source="./media/connect-with-powerbi-desktop/mysql-advanced-options.png" alt-text="Screenshot of MySQL advanced options.":::
92
+
:::image type="content" source="./media/connect-with-powerbi-desktop/power-query-service-signin.png" alt-text="Screenshot of MySQL connection with power query online.":::
71
93
72
-
3. If necessary, include the name of your on-premises data gateway.
94
+
**Note that data gateway is not needed for Azure database for MySQL Flexible Server.**
73
95
74
-
4. Select the **Basic** authentication kind and input your MySQL credentials in the **Username** and **Password** boxes.
96
+
3. Select the **Basic** authentication kind and input your MySQL credentials in the **Username** and **Password** boxes.
75
97
76
-
5. If your connection isn't encrypted, clear **Use Encrypted Connection**.
98
+
4. If your connection isn't encrypted, clear **Use Encrypted Connection**.
77
99
78
100
5. Select **Next** to connect to the database.
79
101
@@ -87,7 +109,7 @@ Power Query Desktop provides a set of advanced options that you can add to your
87
109
| --------------- | ----------- |
88
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. |
89
111
| SQL statement | For information, go to [Import data from a database using native database query](/power-query/native-database-query). |
90
-
| 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. |
91
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. |
92
114
93
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