|
| 1 | +--- |
| 2 | +title: Create a Power app with Azure Database for MySQL Flexible Server |
| 3 | +description: Create a Power app with Azure Database for MySQL Flexible Server |
| 4 | +ms.service: mysql |
| 5 | +ms.subservice: flexible-server |
| 6 | +ms.topic: quickstart |
| 7 | +author: mksuni |
| 8 | +ms.author: sumuth |
| 9 | +ms.date: 03/01/2023 |
| 10 | +--- |
| 11 | + |
| 12 | +# Tutorial: Create a Power app with Azure Database for MySQL Flexible Server |
| 13 | + |
| 14 | +[Power Apps](/power-apps/) is a low-code platform that enables you to build custom applications quickly and easily. You can create a Power App with MySQL database on Azure database for MySQL Flexible Server(overview.md), to meet your business needs. You can establish a connection to your MySQL database, add data to your app, and customize it to meet your specific needs. With the Azure database for MySQL Connector, you'll have a fully functional app with your data that you can customize and share on any device. |
| 15 | + |
| 16 | +## Azure Database for MySQL connector |
| 17 | +[Azure Database for MySQLconnector](/connectors/azuremysql/) allows you to perform read, write, and delete operations with data stored in Azure Database for MySQL in addition to connecting to the database. Here is the list of actions you can run using the connector with Power Apps. |
| 18 | + |
| 19 | +| **Operation** | **Purpose** | |
| 20 | +| --- | --- | |
| 21 | +| Delete row | Remove a row from a table. | |
| 22 | +| Get row | Get a row from a table. | |
| 23 | +| Get rows | Get rows from a table. | |
| 24 | +| Get tables | Get tables from a database. | |
| 25 | +| Insert row | Insert a new row into a table. | |
| 26 | +| Update row | Update an existing row in a table. | |
| 27 | + |
| 28 | +You may experience throttling limits if you hit the threshold of running 200 API calls per connection within 60 seconds. |
| 29 | + |
| 30 | +## Create a connection to your MySQL database |
| 31 | + |
| 32 | +1. Sign in to [Power Apps](https://make.powerapps.com/) and, if necessary, [switch environments](/power-apps/maker/canvas-apps/intro-maker-portal.md#choose-an-environment). |
| 33 | +2. In left-hand navigation menu go to **Connections** and select **New connection.** |
| 34 | +3. Select **Azure database for MySQL (preview)** to add a new connection. |
| 35 | + :::image type="content" source="./media/tutorial-create-power-app-with-mysql/select-azure-db-for-mysql-connector.png" alt-text="Screenshot of selecting Azure database for MySQL connector to add a connection"::: |
| 36 | + |
| 37 | +4. Enter the server's name, database name, and authentication information for your MySQL database. Click "Create" to establish a connection to your database. |
| 38 | + :::image type="content" source="./media/tutorial-create-power-app-with-mysql/power-apps-add-mysql-connection.png" alt-text="Screenshot adding new connection for mysql using the Azure database for MySQL connector"::: |
| 39 | + |
| 40 | + >[!NOTE] |
| 41 | + > Newly created connections are shareable, so that if a Power App is shared with another user, the connection is also shared. In addition, you don't need to set up a data gateway to connect to the server, as it is required to connect to an on-premises MySQL server. |
| 42 | +
|
| 43 | +## Create a new Power App |
| 44 | + |
| 45 | +You can create a new Power App from scratch or use Dataverse to get started quickly. |
| 46 | + |
| 47 | +1. Create a new app from **Dataverse**. |
| 48 | + :::image type="content" source="./media/tutorial-create-power-app-with-mysql/create-power-app-from-dataverse.png" alt-text="Screenshot of adding a Dataverse app."::: |
| 49 | + |
| 50 | +2. Select the previously added connection. Choose a table and select **Connect**. |
| 51 | + :::image type="content" source="./media/tutorial-create-power-app-with-mysql/add-connection-dataverse-app.png" alt-text="Screenshot adding new connection when creating a dataverse app"::: |
| 52 | + |
| 53 | +3. You can see a simple app created which lists all the customers from **classicmodels.customers** table. |
| 54 | + :::image type="content" source="./media/tutorial-create-power-app-with-mysql/power-app-with-azure-mysql.png" alt-text="Screenshot new power app using dataverse with mysql"::: |
| 55 | + |
| 56 | +## Customize your app |
| 57 | +With your data added to your app, you can now customize it to meet your specific needs. Power Apps offers a wide range of customization options, including layout and design options, user interface controls, and formula-based Power. You can also use Power Apps' connectors to integrate with other systems, such as Microsoft SharePoint or Salesforce, to extend the functionality of your app. View all the [connectors available](/connectors) to you to build more complex integrations for your business needs. |
| 58 | + |
| 59 | +## Next Steps |
| 60 | + |
| 61 | +Learn more about Power apps and Azure database for MySQL connector. |
| 62 | +- [Azure Database for MySQL - Connectors documentation](/connectors/azuremysql/) |
| 63 | +- [Power Apps documentation](/power-apps/) |
| 64 | + |
0 commit comments