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 (
mysqldumpandmysql), version 8.0 or later. Use MySQL’s tools, not MariaDB’s. Get them from dev.mysql.com/downloads: on macOSbrew install mysql-client, on Debian or Ubuntu themysql-clientpackage 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.
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
mysqldump drops and recreates each table it contains. Check the result by listing the tables: