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-dumpandmariadb), at least as new as the database’s version. Older MariaDB releases name themmysqldumpandmysql; the options are the same. Get them from mariadb.org/download: on macOSbrew install mariadb, on Debian or Ubuntu themariadb-clientpackage 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.
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
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 withmariadb-dump. Download one and load it into any MariaDB database of the same or a newer version: