Managed databases
Create a managed database in Intuidy, query it, add credentials for external tools, back it up and restore it, and see what it costs.
A managed database is a database you create and run inside Intuidy. Use one when your workflows and notebooks need a place to store and query data, or when a tool outside Intuidy needs to read that data directly.
Before you start
- You need permission to manage databases. Without it, Create New Database isn't shown. See Roles and permissions.
- A managed database is billed from the time it is created. The pricing section on this page lists what you pay for.
Create a database
- Go to Integrations.
- Select Create New Database.
- Choose a Database engine. The engine is fixed once the database is created.
- Enter a Database Name, for example
Production Analytics. The name must differ from the names of your other databases. Intuidy generates a unique identifier for the database automatically. - Choose a Provisioned Size.
- If the engine offers extensions, choose any you need under Extensions, such as PostGIS on PostgreSQL.
- Set the backup schedule: how often to take a backup, how long to keep scheduled backups, and the day and retention for the weekly and monthly backups.
- To let tools outside Intuidy connect, expand External Access and choose an option. External access is off by default.
- Select Create Database.
Intuidy provisions the database and lists it on Integrations under Your Databases. Select Manage on the database to open it.
A database marked Active is provisioned and enabled. That status is not a connectivity check. To test the connection, select Check connectivity now.
External access options
| Option | Who can connect |
|---|---|
| No external access | Only Intuidy workflows and notebooks. Recommended for most uses. This is the default. |
| Allow from anywhere (TLS required) | Anyone with valid credentials, over TLS, from any IP address. |
| Restrict to specific IPs | Only the IP addresses or CIDR ranges you list, one per line, such as 203.0.113.0/24. At least one entry is required. |
You can change the display name, provisioned size, external access, and backup schedule later under Database Settings on the Overview tab.
Enable or disable an extension
An extension adds types and functions to the database. PostgreSQL databases offer PostGIS. You can enable or disable an extension at any time under Extensions on the Overview tab of an active database. This needs permission to manage databases.
Intuidy asks you to confirm before it disables an extension. Disabling removes the extension's types and functions from the database, but no data is dropped: while a column, view, or index still uses the extension, the database refuses the change, nothing is changed, and Intuidy lists the objects that use it.
What the database page shows
| Tab | What it holds |
|---|---|
| Overview | Connection details, the estimated monthly cost, database settings, the backup schedule, extensions (for engines that offer them), and deletion. |
| Table Management | Your tables, data import, and the query editor. |
| Credentials | Usernames and passwords for tools outside Intuidy. |
| Backups | Every backup, with its type and status. |
| Logs | Connection logs, including the source IP of each connection. |
Import data and run queries
Your workflows and notebooks can read and write a managed database without a credential. For notebooks, see Query and compute cells. You can also work with tables directly on the database page.
Import a file
- Open the database and select Table Management.
- Select Import Data.
- Enter a Table Name. Use letters, numbers, and underscores only, starting with a letter or underscore.
- Under File (CSV or Excel), choose the file.
- Start the import.
Select Back to tables to return to the table list and confirm the table is there.
Run a query
- Open the database and select Table Management.
- Select Run a Query.
- Enter your statement in SQL Query.
- Run the query.
If Intuidy identifies the statement as destructive, it asks you to confirm before it runs. Select Run it to continue.
Rename or drop a table
From Table Management, select Rename Table or Drop Table for a table.
- A table name starts with a letter or underscore, contains only letters, numbers, and underscores, and is at most 64 characters.
- Dropping a table permanently deletes the table and all its data. You can recover a dropped table only from a backup taken before the drop, so take a backup first if you might need the rows.
Add a credential for an external tool
A credential is a username and password that an external tool, script, or application uses to connect to the database. Intuidy workflows don't use credentials. A credential works only from the network locations that the database's External Access setting allows.
- Open the database and select Credentials.
- Select Add Credential.
- Enter a Display Name.
- Enter a Username.
- Select at least one permission.
- Enter Max Concurrent Connections, a number between 1 and 100.
- Under Connection Security, choose Any IP address or Restrict to specific IPs. For a restricted credential, enter IPv4 addresses or CIDR ranges, one per line.
- Select Create Credential.
- Copy the password from Credential Ready and store it somewhere safe.
Intuidy generates the password and shows it once. It cannot be retrieved later.
To connect, give your tool the Host, Port, and Database values from Connection Details on the Overview tab, with the username and password. TLS is always required, and unencrypted connections are rejected. Where the engine has a sign-in requirement for clients, Connection Details states it: PostgreSQL sign-ins use SCRAM-SHA-256, so your client must support it.
Permissions apply to all tables in this database only. Server-level privileges are never granted.
Change, reset, or delete a credential
- Edit Credential. Changes take effect immediately. Existing connections may need to reconnect to pick up changed permissions.
- Reset Password. Intuidy generates another password and shows it once. The current password stops working immediately, so update every application that uses the credential.
- Delete Credential. Any application connecting with that username loses access to the database immediately.
Back up and restore
Each backup is a compressed copy of this database alone. The Backups tab lists every backup with its type (Manual, Scheduled, Weekly, or Monthly) and its status (In progress, Available, or Failed).
Change the backup schedule
- Open the database and select Overview.
- Under Backup Schedule, change the settings you need.
- Select Save Changes.
| Setting | What it controls |
|---|---|
| Backup Every | How often a scheduled backup is taken. |
| Keep Scheduled Backups | How long scheduled backups are kept. |
| Weekly Backup Day | The day of the week the weekly backup is taken. |
| Keep Weekly Backups | How long weekly backups are kept. |
| Monthly Backup Day | The day of the month the monthly backup is taken. |
| Keep Monthly Backups | How long monthly backups are kept. |
Backup days are in UTC.
Take a manual backup
Open the database, select Backups, and start a backup. It is listed as Manual, and you can restore it once its status is Available.
Restore a backup
A restore loads the backup into a separate database. The database the backup came from is not changed.
- Open the database and select Backups.
- Find a backup with the status Available and choose to restore it.
- Enter a New Database Name.
- Confirm the restore.
The restored database becomes available when the load finishes. Open it from Integrations to check its tables.
Download or delete a backup
You can download a backup from the Backups tab. A downloaded backup is a gzip-compressed SQL file (.sql.gz) that loads with psql for a PostgreSQL database and with mysql for a MySQL database. When you delete a backup, the stored copy is removed within a day and cannot be restored after that.
Check what a database costs
There is no provisioning fee. A managed database is billed on:
- its provisioned size, metered hourly;
- the compute and storage I/O its queries use;
- any space it uses beyond the provisioned size.
To see the projection for one database, open it and find Estimated Monthly Cost on the Overview tab. The estimate needs an active database.
To change what the database is billed on, change Provisioned Size under Database Settings and select Save Changes.
A database restored from a backup is billed as its own database once the restore finishes. For how usage appears on your account, see Tokens and usage.
Delete a database
- Open the database and select Overview.
- Under Danger Zone, select Delete Database.
- Follow the confirmation prompt.
The database is marked for deletion immediately and removed after a 7-day grace period. After that, all tables, data, credentials, connection logs, and backups are permanently deleted. During the grace period you can still download its backups or restore them into a separate database, and support can recover the database. See Get help.
Troubleshooting
- The restore did not finish. The database that was being restored is removed and its fee is refunded. The backup is unchanged, so you can restore it again.
- You lost a credential's password. Passwords can't be retrieved. Select Reset Password on the credential, then update the application that uses it.
- An external tool can't connect. Check that External Access is not set to No external access, that the tool's IP address is allowed on both the database and the credential, and that the tool connects over TLS. The Logs tab lists connections with their source IP.
- Intuidy refuses to disable an extension. A column, view, or index still uses it. Remove or change the objects Intuidy lists, then disable the extension again.
- Intuidy says the database name is taken. Another of your databases already uses that name. Enter a different Database Name.
↳ Query and compute cells ↳ Tokens and usage ↳ Troubleshoot connections