SQL database integration
Connect a PostgreSQL, MySQL, SQL Server or MariaDB database to Softr, then build apps and dashboards on your tables or on your own SQL queries in Softr.
PostgreSQL, MySQL, SQL Server, and MariaDB are SQL data sources for your structured data. In Softr, you can build custom apps and dashboards on these databases on Business and Enterprise plans.
Connect a SQL database
Before you connect, get your database credentials (host, port, database name, user and password) and make sure you have permission to access the database.
-
In the Softr Studio dashboard, select Integrations in the left menu.
-
Select Connect new.

-
In the Select an integration window, select PostgreSQL, MySQL, SQL Server, or MariaDB.

The Select an integration window with PostgreSQL selected -
Enter a Name to recognize the connection, then the Host (for example
db.example.com), Port, Database, User, and Password. Make sure you have permission to access the database.Softr fills in the default port:
5432for PostgreSQL,3306for MySQL and MariaDB, and1433for SQL Server.
The Connect to PostgreSQL database window -
Select Connect to verify and establish the connection. If the connection fails, check your credentials and try again.
-
Optional: add Softr’s IP addresses to the allowed list of your database:
3.120.79.212,3.123.159.186, and52.58.246.121.
Use cases
| Use case | What it does |
|---|---|
| Custom apps and dashboards | Shows your structured data from PostgreSQL, MySQL, SQL Server or MariaDB in custom apps and dashboards. |
| Internal team access | Gives your internal teams secure access to the data through an app. |
| Partner access | Gives external partners secure access to the data through an app. |
| Write data back | Forms in your app write data back to your SQL database. |
Use a SQL database as a data source
Connect your SQL data to a Classic app
Once your database is connected, you can use it in any app.
Connect a block to a table
To display your data in the app, connect a dynamic block, such as List, Grid, or Table, to your SQL table.
- Open the block’s Source tab and select your SQL account in Account.
- Select the database you want to use.
- For PostgreSQL and SQL Server, select the schema. MySQL and MariaDB have no schema field.
- Select the table you want to use, or add a new query.
- Optional: select the primary field.

Map table columns to item fields
Choose which table properties the block shows, and map each one to a Softr field. For example, map an email column in the database to an email field in Softr.

Use a SQL database in workflows
Add an action from the SQL group of the step picker, then pick your SQL account, the database and the table.
| Action | What it does |
|---|---|
| Add record | Creates a single record |
| Find record | Finds the first record that matches the conditions |
| Find multiple records | Finds every record that meets the criteria |
| Update record | Updates a single record |
| Update multiple records | Updates several records at once |
| Delete record | Deletes a single record |
| Delete multiple records | Deletes several records at once |
FAQ
Which plan do I need for a SQL database?
SQL data sources are available on Business and Enterprise plans.
Which databases can I connect?
PostgreSQL, MySQL, SQL Server and MariaDB. Softr fills in the default port for each type.
Can I update my SQL database from Softr?
Yes. Create forms in Softr that write data back to your SQL database.
Is my SQL data secure?
Softr uses industry-standard encryption to protect your data.
Can I connect several databases to one Softr app?
Yes. Connect several SQL databases and use them in the same app.