# Migrate from Railway to Layerbase

> Move a Railway Postgres, MySQL, or Redis service to Layerbase in minutes. Guided read-once migration, matching engine provisioned automatically.

Canonical: https://layerbase.com/migrate/railway
Generated from Layerbase source: 2026-11-17

Move your Railway Postgres, MySQL, or Redis to a managed Layerbase database in one guided pass. Paste a token, pick a service, and we provision a matching database and copy the data. Read-once, your Railway service is never modified.

## Key facts

| Fact | Value |
| --- | --- |
| Source platform | Railway |
| Layerbase target engines | PostgreSQL, MySQL, Redis |
| How you connect | Connect your account with an API key |
| Source modified | No: read-once copy, credentials never stored |

## Why switch from Railway

### Postgres, MySQL, or Redis: all three migrate

Paste one Railway token and we list every database service you run. Pick one and Layerbase provisions the matching engine, then copies the data across.

### Databases as the product

Backups every 12 hours on paid plans, a web console for every engine, database branching, TLS by default, and wake-on-connect. Purpose-built database hosting instead of a generic container.

### Flat, predictable pricing

Postgres and Redis start on the Free tier, then $5/mo Solo or $15/mo Pro. No per-minute compute billing to reverse-engineer at the end of the month.

## How the migration works

1. **Create a free account or sign in.** Sign in with Google or GitHub. No credit card is needed to start, and the migration wizard opens with this platform already selected.
2. **Connect your account.** Paste a Railway account or team token (Account Settings, then Tokens). We list your Postgres, MySQL, and Redis services so you can pick one, and provision a matching Layerbase database. The source needs public networking enabled.
3. **Pick what to migrate and name it.** Choose what to bring over, give the new Layerbase database a name, and start the migration. Progress streams live in the dashboard.
4. **We copy it in one pass.** The migration reads from Railway once and never writes to it. Credentials are used for the copy and never stored. When it finishes, you land in your new database with a live TLS connection string.

## Common Railway migration questions

### Will my Railway service be modified?

No. The migration is read-once: we connect, copy the schema and data, and disconnect. Your Railway service keeps running throughout.

### What credentials do I need?

A Railway account or team token (Account Settings, then Tokens). We use it once to list your Postgres, MySQL, and Redis services so you can pick one, and it is never stored.

### Does my Railway database need to be reachable?

Yes. The source service needs public networking enabled so the migration can connect to it. You can turn it back off after the copy finishes.

### Which engine will my data land on?

The matching one: Railway Postgres becomes Layerbase Postgres, MySQL becomes MySQL, and Redis becomes Redis (or Valkey if you prefer, since the two are wire-compatible).

### Which PostgreSQL version will my database run?

New Layerbase PostgreSQL databases run PostgreSQL 18.7, with the next major available as an opt-in beta. Older major versions cannot be chosen for new databases, but you do not need to upgrade before moving: the import is a dump and restore, which carries your schema and data forward from an older major version. Test your app against PostgreSQL 18.7 before you switch traffic, and check the import report, which names anything that did not come across.

## Links

- [Migrate from Railway](https://layerbase.com/migrate/railway)
- [PostgreSQL on Layerbase](https://layerbase.com/db/postgresql) (markdown: https://layerbase.com/db/postgresql.md)
- [MySQL on Layerbase](https://layerbase.com/db/mysql) (markdown: https://layerbase.com/db/mysql.md)
- [Redis on Layerbase](https://layerbase.com/db/redis) (markdown: https://layerbase.com/db/redis.md)
- [Cloud migration guide](https://layerbase.com/docs/cloud/migrate)
- [Pricing](https://layerbase.com/pricing) (markdown: https://layerbase.com/pricing.md)
