Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Export, import and empty

What an export contains, how imports work, and emptying a database.

On this page

Export#

Click Export .sql or Export .sql.gz. The dump contains every table with its data, the views and the triggers. Binary columns are written as hex, so the file imports cleanly on any MySQL or MariaDB server.

Import#

  1. Click Import.
  2. Choose a .sql or .sql.gz file from your computer, or enter the path of a file in the server files for larger dumps.
  3. Turn on Remove existing tables first to replace the database instead of adding to it.
  4. Click Import.

Dumps from mysqldump, MariaDB and phpMyAdmin work. Lines that switch to or create another database are skipped, and DEFINER clauses are removed, so views, triggers and routines are owned by the database user.

When a statement fails, the import stops and shows which statement failed and why.

Empty a database#

Click Empty and type the name of the database. Every table, view and stored routine is dropped. The database and its user stay.

Safety#

  • All work runs with the credentials of that database, so a user can never reach another database.
  • Imports, exports and emptying are written to the activity log of the server.

Permissions#

Action Permission
Export database.view_password
Import and empty database.update
Import from the server files database.update and file.read-content

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.

Complete your panel

Get the Pterodactyl v2 Bundle with:

$104.68 $139.58 Save 25%