Skip to main content
You move data into and out of a Sevalla MySQL database with MySQL’s own tools over the database’s external connection: mysqldump to export, the mysql 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 MySQL 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 MySQL’s client tools (mysqldump and mysql), version 8.0 or later. Use MySQL’s tools, not MariaDB’s. Get them from dev.mysql.com/downloads: on macOS brew install mysql-client, on Debian or Ubuntu the mysql-client package from the MySQL APT repository, on Windows the MySQL 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 mysqldump 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 the options in Export a database. Download one and load it into any MySQL 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