DB Studio
Sign in to DB Studio, the database app of Hfog Panel, find your way around its tree, path and tabs, and open a database, cache, search index or SQLite file.
DB Studio shows the databases of your hosting account in the browser. You can browse and edit rows, change the structure of tables, run SQL, search, and import and export. It also opens your MongoDB databases, your Redis and Memcached caches, your OpenSearch indices and the SQLite files in your home folder, with the same layout and the same tab names for all of them.
Where: https://dbs.yourdomain.com, or Control Panel › Databases › DB Studio

Open DB Studio
From the Control Panel: click DB Studio in the menu (or Browse next to a database). DB Studio opens in a new tab, already signed in, at that database (MySQL, PostgreSQL or MongoDB). The link works once; opened again in a browser that is already signed in, it opens DB Studio. If you see That link has expired. Open DB Studio from your Control Panel again., open it from the Control Panel again.
Directly:
- Open the DB Studio address.
- Enter the Username and Password of your hosting account.
- Click Sign in.
With two-factor login on, type the 6-digit Code (or a backup code) and click Continue.
Or click Sign in with a passkey and confirm with your fingerprint, face or device PIN: the passkeys of your hosting account, added under Password & security in the Control Panel, work here too when DB Studio is on an address under the panel's domain. When the second step is next, Use my passkey finishes the sign-in with one of your login's own passkeys. A passkey sign-in counts as two-step sign-in.
Forgotten your password? resets it on DB Studio's own sign-in page: your username or email, the 6-digit code from the email, then the new password twice.
A session ends after 2 hours without use, and after 12 hours at most.
The layout
| Part | What it is |
|---|---|
| The tree on the left | every database with its tables (or collections, indices, keys) and views under it. The box on top filters the tree as you type (Ctrl+K puts the cursor in it). Recent lists the last 8 tables you opened; Favourites the ones you marked with the star. |
| The path on top | Server › Database › Table. Each part is a link to its own page. The star at its end adds the open table to Favourites. |
| The tabs | what you can do at that place. A tab is only shown where the engine has it and you may use it. |
Recent tables, favourites, the SQL history and bookmarks are kept in your browser, separately for each login. They are not sent to the server and are not on your other devices.
The server's tabs
The start page has these tabs:
| Tab | What it does |
|---|---|
| Databases | every database and store of your account with its type and size; Show narrows the list to one type |
| SQL | the SQL box, with a menu to choose the database |
| Status | figures of the server behind the chosen database, and the limits of DB Studio |
| Export / Import | the same as a database's own tabs, with a menu to choose the database |
| Engine | Opens |
|---|---|
| MySQL / MariaDB | tables, rows, structure, SQL, search, import, export, operations, triggers, routines and events |
| PostgreSQL | the same, without events |
| MongoDB | collections, documents, indexes, queries, import and export (see MongoDB in DB Studio) |
| Redis | keys by prefix, values of every type, time to live and a console (see Redis and Memcached) |
| Memcached | status, item look-up, store and empty (the same page) |
| OpenSearch | indices, mappings, documents and a console (see OpenSearch in DB Studio) |
| SQLite files | the SQLite files of your home folder (see SQLite files) |
Redis, Memcached and OpenSearch are listed when they are switched on for your account in the Control Panel. If you have no databases yet, create one in the Control Panel first (MySQL databases, PostgreSQL databases or MongoDB databases), then open it here.
Note: each database opens with its own database user and sees nothing else; a cache, a search node and an SQLite file open as your own hosting account. You never type a database's password, except in the one case below. Database users themselves are managed in the Control Panel.
Unlock a PostgreSQL database
A PostgreSQL database that DB Studio can't sign in to by itself shows Unlock this database. Type the password of the database user and click Unlock. It is kept only while you are signed in.
When a database can't be opened
- PostgreSQL isn't running on this server or MongoDB isn't running on this server: those databases can't be opened until the server's administrator starts the service.
- DB Studio opens databases on this server only: your account's databases are on another server of the cluster.
A database's tabs
| Tab | What it does |
|---|---|
| Structure | the tables and views with their rows and size, actions for each, and Create new table |
| SQL | the SQL box (The SQL box) |
| Search | finds a text in every column of every table |
| Export / Import | .sql and CSV files (Import and export) |
| Operations | maintenance of every table |
| Routines / Events | the database's functions and procedures, and (MySQL) its scheduled events, with their definition |
A table's tabs
| Tab | What it does |
|---|---|
| Browse | the rows, with the query that fetched them (Rows and structure) |
| Structure | columns, indexes, foreign keys, table information and the CREATE statement |
| SQL | the SQL box, with quick statements for this table |
| Search | a condition for each column |
| Insert | a form for a new row |
| Export / Import | the table as SQL or CSV; a CSV file into the table |
| Operations | rename, copy, maintenance, empty and drop |
| Triggers | the table's triggers with their definition |
A view has Browse, Structure, SQL, Search and Export. A read-only database has no tabs that change it.
Keyboard and mouse
DB Studio works like a desktop database tool. Press ?, or the keyboard button at the top, to see every shortcut.
On a Mac, ⌘ takes the place of Ctrl. Shortcuts don't fire while you type in a box, except the SQL box's own.
Rows, SQL results and MongoDB documents
| Key or mouse | What it does |
|---|---|
| Click | Selects a cell |
Shift-click, Shift + arrows, or drag |
Selects a block of cells |
Ctrl-click |
Adds a row to the selection, or takes it out |
Shift+Space / Ctrl+A |
Selects the whole rows of the selection / every row |
Arrows, Home, End, PgUp, PgDn |
Move between cells (Ctrl + arrow, Ctrl+Home, Ctrl+End: to the edge) |
Enter, F2 or double-click |
Edits the cell in place (MongoDB: opens the document) |
Enter / Tab / Shift+Tab |
Saves the cell / saves and edits the next or previous cell |
Esc |
Cancels the edit |
Ctrl+K |
Puts the cursor in the tree's filter box |
Ctrl+C |
Copies the selection as tab-separated text: a block of cells without a header, whole rows with a header line of the column names. It pastes into a spreadsheet as cells. |
Delete |
Deletes the selected rows, after you confirm |
Right-click (long press on a touch screen, the menu key, Shift+F10) |
Copy, Copy as SQL INSERT, Edit, Set NULL, Delete row and Filter by this value |
| Click a column heading | Sorts by it; click again for the other way |
| Drag a column heading's edge | Resizes the column; double-click the edge to undo |
Delete always deletes whole rows. To empty one value, use Set NULL in the right-click menu (it is greyed
out when the column can't be NULL). A value shown cut (longer than 300 characters) opens the row's Edit row
form instead of editing in place, and is copied in full.
The SQL box
| Key | What it does |
|---|---|
Ctrl+Enter |
Runs the selected text, or the statement the cursor is in. Error lines count from the top of the box. |
Ctrl+Shift+Enter or Run |
Runs everything in the box |
Ctrl+/ |
Turns the selected lines into comments (-- ), or back |
Tab / Shift+Tab |
Indents / outdents the selected lines |
Esc, then Tab |
Leaves the box, so the keyboard can move on to the next control |
In the MongoDB query box, Ctrl+Enter runs the query.
Moving around: the browser's Back and Forward buttons, and the mouse's back and forward buttons, go through the tables, filters and queries you opened before. Every view has its own address, so you can bookmark it.
Limits
| Limit | Value |
|---|---|
| Time one statement may run | 30 seconds |
| Rows shown for one statement in the SQL box | 1,000 |
| Statements in one run of the SQL box | 200 |
| Text in the SQL box | 1 MB |
| One statement of an import or export | 10 minutes |
| A whole import | 30 minutes |
| Largest .sql file to import | 128 MB, unless your hosting provider set another limit |
| Largest SQLite file to open | 512 MB |
| Conditions in one search of a table | 40 |
Language and look
The language menu at the top switches the interface language. The moon and sun button switches between the light and dark look. Your username opens Control Panel, Password & security and Sign out.