Created
March 16, 2024 09:43
-
-
Save back-2-95/55cb48adb989e61c76b675be0e5563a9 to your computer and use it in GitHub Desktop.
Pgloader load file for migrating from PlanetScale MySQL to Neon PostgreSQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD DATABASE | |
FROM mysql://MY_PLANETSCALE_USERNAME:[email protected]/MY_DATABASE?sslmode=require | |
INTO postgres://MY_NEON_USERNAME:endpoint=ep-MY_ENDPOINT_ID;MY_NEON_PASSWORD@ep-MY_ENDPOINT_ID.eu-central-1.aws.neon.tech/MY_DATABASE?sslmode=require | |
WITH include drop, create tables, quote identifiers | |
ALTER schema 'MY_DATABASE' rename to 'public' | |
; |
Running the migration:
/usr/local/bin/pgloader migrate.load
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I did on Ubuntu virtual machine (roughly):