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#
- Click Import.
- Choose a
.sqlor.sql.gzfile from your computer, or enter the path of a file in the server files for larger dumps. - Turn on Remove existing tables first to replace the database instead of adding to it.
- 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 |