Skip to main content
You move data into and out of a Sevalla MariaDB database with MariaDB’s own tools over the database’s external connection: mariadb-dump to export, the mariadb client to import. The same commands move a database from another provider to Sevalla.

Before you begin

  • Create the database on Sevalla first, on the same MariaDB version as the source or a newer one. See Create a database.
  • Enable the external connection. If IP restrictions are on, allow your IP address.
  • Install MariaDB’s client tools (mariadb-dump and mariadb), at least as new as the database’s version. Older MariaDB releases name them mysqldump and mysql; the options are the same. Get them from mariadb.org/download: on macOS brew install mariadb, on Debian or Ubuntu the mariadb-client package from the MariaDB repository, on Windows the MariaDB installer.
  • Copy the Host, Port, Database, User and Password from the database’s Overview tab, under Connection > External. See Find the connection details.
The examples use the host orders-db-k3j4h.ext.sevalla.app, port 20145, database orders and user orders; replace them with yours. --password makes each command ask for the password.

Export a database

To export from another provider before you move to Sevalla, run the same command with that provider’s host, port, user and database.

Import a database

The command prints nothing unless there’s an error. Import into an empty database: a dump made by mariadb-dump drops and recreates each table it contains. Check the result by listing the tables:

Restore a dump backup

Databases in OCI locations write their dump backups as gzip-compressed SQL made with mariadb-dump. Download one and load it into any MariaDB database of the same or a newer version:
To restore a Sevalla backup into a Sevalla database, use Restore on the Backups tab instead. See Restore a backup.

Common errors