Overview
PlanetScale provides an import tool in the dashboard that allows you to painlessly import an existing internet-accessible MySQL or MariaDB database into a PlanetScale database with no downtime.You must be an Organization Administrator to use this feature.
Import process overview
The import workflow gives you visibility into every step of your database migration. You’ll see real-time progress, detailed logs, and replication metrics throughout. Here’s what the process looks like:- Create database - Set up your PlanetScale database
- Connect to external database - Add connection credentials and SSL/TLS settings
- Validate connection and schema - We check connectivity, server configuration, and schema compatibility
- Select tables - Pick which tables to import (all tables imported if foreign keys detected)
- Start workflow - Kick off the import
- Monitor import - Watch progress with real-time logs, per-table progress, and replication lag information
- Complete import - Finalize and detach from your external database
NoteIt’s recommended to avoid all schema changes / DDL (Data Definition Language) statements during an import on both your source database and the PlanetScale database. This includes
CREATE, DROP, ALTER, TRUNCATE, etc.Step 1: Create your PlanetScale database
1
Head to your PlanetScale dashboard and click on “New database” > “Import database”.

