Only show guides for your app
Browse and edit your database's rows, run queries, see how tables relate and check its health from your server's Databases page.
The database workspace lets you look inside a database from the panel. You can browse and edit its rows, run queries, see how its tables relate and check its health. To open it, go to Databases in your server's menu and press Open on a database.
Add a database covers creating a database, and Connect your app to a database covers reaching it from your own code.
s4821_shop, where her shop plugin keeps its data.| Part | What it does |
|---|---|
| The database's name, top left | Switches to another database on this server |
| Tables and SQL | The two modes. MongoDB calls them Collections and Shell, and Redis calls them Keys and CLI |
| Import & export | Imports a file of up to 10 GB, or downloads a copy of your data |
| More tools (the three dots) | Health, Backups, Connect, Keyboard shortcuts, and on MySQL and PostgreSQL the Relations diagram |
In Tables, Data shows a table's rows, 50 to a page unless you pick 25, 100 or 250 at the bottom. Structure shows its columns, indexes and relations. Search rows, Filter and Sort narrow down what you see.
shop_items and double-clicks the price of the diamond sword.Insert row adds a row. Tick rows to Copy or Delete them, and the three dots next to Delete have Duplicate and Set value. Paste rows in the table's menu takes up to 1,000 rows from a spreadsheet. You can view a table that has no primary key, but you can't edit it here.
CONFIRM when one run touches several tables. That covers dropping or emptying a table, dropping a column, a DELETE or UPDATE with no WHERE, and deleting more than 50 rows at once.The editor starts in Read-only, which runs only statements that read data. Click it to switch to Changes allowed before you run an UPDATE or a DELETE.
Save keeps a query for everyone who can query this database. Explain shows how the database plans to run a query and whether an index helps. Ask Felix writes a query from your description, and Felix only sees your table and column names.
Relations diagram draws each table of a MySQL or PostgreSQL database as a box with its columns. A line joins two tables wherever a foreign key, a column that points at a row in another table, links them. Hover a table to highlight what it's related to, and click its name to open it. The diagram shows the first 200 tables and the first 12 columns of each.
Turn on Live to refresh Health every 5 seconds.
| Number | What it means |
|---|---|
| Data and Indexes | The space your rows take, and the space their indexes take |
| Running queries (MySQL, PostgreSQL) | Queries running right now, with the open connections counted under it |
| Reclaimable (MySQL) | Space that deleted rows left behind. Optimize in a table's wrench menu gives it back |
| Dead rows and Last vacuum (PostgreSQL) | Old row versions waiting to be cleaned up, and when that last happened. Vacuum cleans them |
| Size over 30 days (MySQL, PostgreSQL) | The database's size day by day. Set an alert… notifies you when it passes a size you choose |
| Memory used and Hit rate (Redis) | The memory your keys take, and the share of lookups that found a key |
MySQL and PostgreSQL also get Suggestions, which names an index worth adding or dropping, and Connections, where you can end a query that's stuck.
| Limit | Value |
|---|---|
| Rows in one query result | 1,000 |
| Time one statement can run | 30 seconds |
| Statements in one run | 200 |
Free and Premium servers get the same workspace and limits. A free server holds up to 5 databases and a Premium server up to 20, and Redis databases need Premium. On a free server, Back up first shows once you've linked Google Drive, where free database backups are stored.
| What you see | Why | What to do |
|---|---|---|
| No Open button, or "You need the Query databases permission to open the workspace." | Your access to this server doesn't include browsing databases | Ask the owner to add that permission for you under Members |
| "The database workspace isn't available here yet" | It isn't running in this server's region yet | Your databases still work, and MySQL databases keep phpMyAdmin |
| "Read-only is on, so only statements that read can run" | The query changes data while Read-only is on | Press Allow changes and run it again |
| "Only the first rows are shown" | The result has more than 1,000 rows | Add a LIMIT or a WHERE, or export the table from Import & export |