Migrate from Amazon RDS to Supabase
This guide aims to exhibit the process of transferring your Amazon RDS database from any of these engines Postgres, MySQL or MS SQL to Supabase's Postgres database. Although Amazon RDS is a favored managed database service provided by AWS, it may not suffice for all use cases. Supabase, on the other hand, provides an excellent free and open source option that encompasses all the necessary backend features to develop a product: a Postgres database, authentication, instant APIs, edge functions, real-time subscriptions, and storage.
Supabase's core is Postgres, enabling the use of row-level security and providing access to over 40 Postgres extensions. By migrating from Amazon RDS to Supabase, you can leverage Postgres to its fullest potential and acquire all the features you need to complete your project.
Retrieve your Amazon RDS database credentials #
- Log in to your Amazon RDS account.
- Select the region where your RDS database is located.
- Navigate to the Databases tab.
- Select the database that you want to migrate.
- In the Connectivity & Security tab, note down the Endpoint and the port number.
- In the Configuration tab, note down the Database name and the Username.
- If you do not have the password, create a new one and note it down.
Retrieve your Supabase Host #
- If you're new to Supabase, create a project.
- Go to the Database settings for your project in the Supabase Dashboard.
- Under Connection Info, note your Host (
- Save your password or reset it if you forgot it.
Migrate the database#
The fastest way to migrate your database is with the Supabase migration tool on Google Colab.
Alternatively, you can use pgloader, a flexible and powerful data migration tool that supports a wide range of source database engines, including MySQL and MS SQL, and migrates the data to a Postgres database. For databases using the Postgres engine, we recommend using the pg_dump and psql command line tools, which are included in a full PostgreSQL installation.
- Select the Dabase Engine from the Source database in the dropdown
- Set the environment variables (
SUPABASE_PASSWORD) in the Colab notebook.
- Run the first two steps in the notebook in order. The first sets engine and installs the necessary files.
- Run the third step to start the migration. This will take a few minutes.
- If you plan on migrating a database larger than 6 GB, we recommend contacting support to ensure that you'll have the proper disk size pre-provisioned. You can read more about how the disk is managed on Supabase on the Database usage.
- We also recommend upgrading to at least a Large instance for the migration (you can downgrade later) to avoid running out of IO-Budget.