Skip to content

Using Database+

Use the overview, edit tables with real NULLs, run SQL, import from files or other servers, schedule backups and share databases.

3 min readUpdated
On this page6 sections

Open a server and choose Databases. The sidebar lists the server's databases, including databases shared from your other servers, and the six parts of the workspace.

Overview

Size, rows, tables and open connections sit at the top, with a graph of the last 24 hours, 7 days or 30 days underneath. Switch the graph between size, rows, tables and connections.

Connect holds four ready-made connection strings: a CLI command, a URI, a JDBC string for Java plugins such as LuckPerms and a .env block. The .env block stays blurred until you click Click to show. Click any string to copy it. Active Connections lists every client connected as the database user, refreshed every 5 seconds, and lets you close a stuck connection.

Credentials shows the endpoint, username and password, with Rotate Password. Delete removes the database for good after you type its name.

Tables

All tables and views with their rows, size, engine and last change. Open a table to:

  • Data: page through rows, search every column at once and sort on any column
  • Edit or Insert a row: every column can hold a value, SQL NULL or its default, so empty text and NULL are never mixed up. Binary columns are entered as hexadecimal.
  • Structure, Indexes and CREATE: columns with their types and defaults, indexes with their columns, and the full CREATE statement to copy
  • Empty or Drop a table after a confirmation

SQL Console

Write one or more statements and press Run or Ctrl + Enter. Select part of the text to run only that. Each result shows its rows and the time it took. DELIMITER works for triggers and routines.

Snippets start you off with table sizes, the server version and the process list. History reopens your earlier queries. Queries always run as the database user, so they can never touch other databases.

Import & Export

Import a .sql or .sql.gz file in one of three ways:

  • Upload: drop the file on the page or click to choose it. Big files are uploaded in pieces.
  • Server files: browse the server's folders and pick a file.
  • Another database: copy a database from this Panel (the databases of the servers you own) or from another server by its host, port, database, username and password. Press Test connection to check the login and see what will be copied.

Tick Empty the database first to drop every table, view, routine and event before the import, and Stop at the first error to stop at a failing statement. When it's off, failing statements are skipped and listed in the log. USE and CREATE DATABASE statements are skipped and DEFINER clauses are removed, so dumps from other hosts import cleanly.

Export downloads the database to your computer or saves it into the server's files, as .sql or .sql.gz. Recent imports and exports lists every job with its progress, size, statements and errors.

Backups

Click Back up now with an optional label, or turn on Back up automatically every hour, 6 hours, 12 hours, day or week. The slider sets how many backups to keep: when a new backup finishes, unlocked backups beyond the newest ones are deleted.

Lock a backup to keep it out of that cleanup. Restore replaces the database with the backup, Download saves it as .sql.gz and Delete removes it (unlock it first).

Sharing

Share a database with your other servers, for example one LuckPerms database for a whole network. Pick a server and click Share. The database then shows up in that server's Databases tab with the same login, and the other server can use the full workspace.

Databases can only be shared between servers of the same owner, and only the owner can share. Stop sharing from the owner's server, or click Remove from this server on the other one. Shared databases keep working for anything configured with their login until you rotate the password.