Data - 3 things you should know before using the MySQL or PostgreSQL connectors

Power Apps provides basic connectivity to MySQL and PostgreSQL databases - two of the most popular open source databases.

The documentation for these connectors are beneath:

If you're thinking of using these connectors, here are the top 3 things you should be aware of.

1 - MySQL and PostgreSQL require a premium license plan

Both the MySQL and PostgreSQL connectors are premium connectors. This means that each user requires a per user or per app license at $10/$40 per user per month respectively.

For some app builders, this can conflict with the reason why they choose these data sources - which is to access a relational database in a low-cost way.

Therefore, it's important to factor the cost of premium licensing when we consider using MySQL or PostgreSQL with Power Apps.


2 - MySQL and PostgreSQL work only through an premise gateway

Both the MySQL and PostgreSQL connectors work only through an on-premise gateway. This means that we must install the gateway on a computer that is always switched on, and this is an additional component that we must manage.

It's not possible to connect directly to an instance of that is accessible through the cloud or the web. An example of this is an instance of a MySQL and PostgreSQL database that is hosted in Amazon AWS or Azure.

This is a frequently requested feature, and it is something that you can vote for here:
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/MySQL-connector-connectivity/idi-p/133968

3 - Tables with 'auto increment' primary key columns are not fully supported

Finally, one of the biggest limitations of the MySQL and PostgreSQL connectors is that it is not possible to add records to tables with 'auto increment' primary key fields.


When we attempt to patch or to add a record to a table with an 'auto increment' primary key field, we receive an error from Power Apps that prompts us to pass a primary key field value. This is incorrect because the database is set to automatically generate the primary key field value.

There are several posts about this issue.

It would be great if Microsoft could fix this problem. However, I suspect this has always been a low priority issue because Microsoft's focus will be on a Dataverse, and other Power App features that are focused around the Microsoft ecosystem, and features that can generate more sales or income for Microsoft.

Therefore, I have created a post in the ideas forum which I hope will raise awareness. If MySQL and PostgreSQL support is important to you, I would recommend that you vote for the idea beneath.

Conclusion

If you're thinking of connecting to MySQL or PostgreSQL databases, it's important to be aware that the corresponding connectors are premium connectors which require a premium license plan. Second, these connectors work only through the on-premise gateway. Most importantly, there is a bug that prevents us from adding records to tables with primary key columns that are set to 'auto increment'.

Related posts

Data - How to remove trailing comma all rows in a table
February 20, 2025
Data - How to find the common rows from 3 or more collections
October 06, 2024
Data - How to show the distinct rows from 2 data sources or collections
February 26, 2024
Data - How to implement circular rotational date sorting
February 21, 2024
Bug - What to do when the data section of the Power Apps Maker portal doesn't work
June 18, 2023
Data - Combine columns from separate tables into a single table
October 13, 2022
Formula - Transposing/converting rows to columns- an almost impossible task?
September 23, 2021
Data - How to rename field names in a record
July 14, 2021
Data - How to hide duplicate rows in a gallery / show distinct multiple columns in a gallery
July 09, 2021
Data - Retrieving news/forum/blog articles with RSS
June 26, 2021
Data - How to sort by partial numbers in a text field
June 23, 2021
Data - How to return the last record from a table
June 19, 2021
Data - How to create bulk test/dummy records with random values
June 18, 2021
Data - A walkthrough of how to migrate the data source of an app from Excel to Sharepoint
April 26, 2021
Data - How to enforce unique values (or prevent duplicate values) in one or more columns
April 19, 2021
Data - How much mobile data does Power Apps consume? What ways can we minimise this?
March 28, 2021
Data - How to save and retrieve Google calendar entries
March 14, 2021
Data - How to save and retrieve Google contacts
March 10, 2021
SQL - Caution! This is how users can hack shared SQL connections
January 23, 2021
SharePoint – 2 Mistakes to avoid when importing Excel data
January 10, 2021
SQL - Don't let this DateTime bug catch you out!
January 05, 2021
Settings - What's the purpose of the "Explicit Column Selection" Setting?
January 04, 2021
SQL Server for Beginners Part 3 - Installing On-Premises Gateway
January 24, 2019
SQL Server for Beginners Part 2 - Installing Management Studio
January 14, 2019
SQL Server for Beginners Part 1 - Installing SQL Server
January 04, 2019
Searching data–What you need to know about case sensitivity
December 27, 2018
Images - How to create images that can change depending on data
November 09, 2018
Excel - Reasons NOT to use Excel as a data source
September 25, 2018
SharePoint - What you need to know about Filtering Data
September 16, 2018
Formulas - Generating Row Numbers
April 05, 2018