Skip to content

Commit e627a11

Browse files
Merge pull request #228700 from mksuni/powerbi-update
Powerbi update doc with portal experience
2 parents 755c194 + 360683a commit e627a11

File tree

4 files changed

+42
-20
lines changed

4 files changed

+42
-20
lines changed

articles/mysql/flexible-server/connect-with-powerbi-desktop.md

Lines changed: 42 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,69 @@ ms.date: 09/01/2022
1111

1212
# Import data from Azure Database for MySQL Flexible Server in Power BI
1313

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.
1815

1916
## Prerequisites
2017

2118
1. Install [Power BI desktop](https://aka.ms/pbidesktopstore).
2219
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.
2421
1. Download the [SSL public certificate](https://dl.cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem).
2522
2. Install the SSL certificate in Trusted Root certification authorities store by following these steps:
2623
1. Start **certmgr.msc** Management Console on your Windows system.
2724
2. Right-click **Trusted Root Certification Authorities** and select **Import**.
2825
3. Follow the prompts in the wizard to import the root certificate (for example, DigiCertGlobalRootCA.crt.pem) and click OK.
2926

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.":::
3151

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
3357

3458
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**).
3660
3. Select the server name.
3761
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.
3862
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.
3963

40-
## Connect to MySQL database from Power Query Desktop
64+
### Add MySQL connection in Power BI desktop
4165

42-
To make the connection, take the following steps:
43-
4466
1. Select the **MySQL database** option in the connector selection.
4567

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.":::
4769

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.
4971

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.":::
5173

5274
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.
5375

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.":::
5577

5678
4. Once you're done, select **OK**.
5779

@@ -67,13 +89,13 @@ To make the connection, take the following steps:
6789

6890
2. In the **MySQL database** dialog, provide the name of the server and database.
6991

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.":::
7193

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.**
7395

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.
7597

76-
5. If your connection isn't encrypted, clear **Use Encrypted Connection**.
98+
4. If your connection isn't encrypted, clear **Use Encrypted Connection**.
7799

78100
5. Select **Next** to connect to the database.
79101

@@ -87,7 +109,7 @@ Power Query Desktop provides a set of advanced options that you can add to your
87109
| --------------- | ----------- |
88110
| 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. |
89111
| 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. |
91113
| 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. |
92114

93115
Once you've selected the advanced options you require, select **OK** in Power Query Desktop to connect to your MySQL database.
21.9 KB
Loading
223 KB
Loading
Loading

0 commit comments

Comments
 (0)