CommunityHire an ExpertSign Up
Data SourcesSQL Database
Data Sources

SQL Database

Connect your PostgreSQL, MySQL, SQL Server and MariaDB databases to Softr apps.

In Softr, you can build data-driven apps with PostgreSQL, MySQL, SQL Server, and MariaDB as data sources.

With SQL data sources, you can:

  • Show your structured data in custom apps and dashboards

  • Enable secure access for internal teams and external partners

  • Scale without hitting record limitations

1. Connect your SQL database to Softr

Before you connect, make sure you have:

  • Your SQL database credentials: host, port, database name, user, and password.

  • Permission to access the database.

Open Integrations

  1. In the Softr Studio dashboard, click Integrations in the left menu.

  2. Click Connect new.

The Integrations page of the dashboard, with the Connect new button

  1. In the Select an integration window, click PostgreSQL, MySQL, SQL Server, or MariaDB.

The Select an integration window with PostgreSQL selected

The Select an integration window with PostgreSQL selected

Enter your database credentials

The connect window asks for these fields:

  • Name: A name that helps you recognize the connection in Softr.

  • Host: The database server address, for example db.example.com.

  • Port: The port your server uses. Softr fills in the default port for the database type: 5432 for PostgreSQL, 3306 for MySQL and MariaDB, and 1433 for SQL Server.

  • Database: The name of your database.

  • User: Your database username.

  • Password: Your database password.

The Connect to PostgreSQL database window with the Name, Host, Port, Database, User, and Password fields filled in

The Connect to PostgreSQL database window

Confirm your setup

Click Connect to verify and establish the connection. If the connection fails, check your credentials and try again.

2. Connect your SQL data to your Softr app

Once your SQL account is connected, you can use it in any Softr application.

Connect your data to a dynamic block

To display your data in the app, connect a dynamic block (for example, List, Grid, or Table) to your SQL table:

  1. Go to the block Source tab and select your SQL account in Account.

  2. Select the database you want to use.

  3. For PostgreSQL and SQL Server, select the schema. MySQL and MariaDB have no schema field.

  4. Select the table you want to use, or add a new query.

  5. Optionally, select the primary field.

The Source tab of a List block with the Account, Database, Schema, and Table fields filled in

The Source tab of a List block connected to a PostgreSQL table

Map Fields

When you connect your table to a block, you can choose which table properties to display and map to Softr fields. This lets you control how your data appears in Softr.

Example: If you have an email field in the SQL database, select an email field in Softr.

The Avatar URL field window with Display type set to Image

Mapping an image field

Restricting IP Access

If needed, add Softr’s IPs to your database’s allowed list:

  • 3.120.79.212

  • 3.123.159.186

  • 52.58.246.121

FAQs

Can I update my SQL database from Softr?

Yes! You can create forms in Softr that write data back to your SQL database.

Is my SQL data secure?

Absolutely! Softr uses industry-standard encryption to protect your data.

Can I connect multiple databases to one Softr app?

Yes! You can connect multiple SQL databases and use them within the same app.

March 7, 2025

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.