- Create Railway account
- Click "New Project" → "Add PostgreSQL"
- Get connection string
- Update DATABASE_URL in production
- Create PlanetScale account
- Create new database
- Get connection string
- Update DATABASE_URL in production
- Create Supabase account
- Create new project
- Get connection string from Settings > Database
- Update DATABASE_URL in production
- Create AWS account
- Go to RDS dashboard
- Create PostgreSQL instance
- Configure security groups
- Get connection string
- Create Google Cloud account
- Go to Cloud SQL
- Create PostgreSQL instance
- Get connection string
# 1. Install Railway CLI
npm install -g @railway/cli
# 2. Login
railway login
# 3. Create database
railway add postgresql
# 4. Get connection URL
railway variables get DATABASE_URL
# 5. Use this URL in your Render deploymentpostgresql://username:password@host:port/database_name
# If using SQLite locally
python export_from_sqlite.py
# If using PostgreSQL locally
pg_dump local_db > backup.sql# Import to cloud database
psql "postgresql://user:pass@host:port/db" < backup.sqlIn your Render service settings:
- Set DATABASE_URL to your cloud database URL
- Remove the Render PostgreSQL service
- Keep your backend service pointing to cloud DB
- ✅ Persistent data across deployments
- ✅ Better performance
- ✅ Backup and restore
- ✅ Scalability
- ✅ Can use with any hosting provider
For your use case, Railway is the easiest option:
- Free tier available
- Simple setup
- Good performance
- Works well with Render