database

Add and configure Railway databases for PostgreSQL, Redis, MySQL, and MongoDB projects.

303|36|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/railwayapp/railway-skills --skill database-railwayapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database
Source: https://github.com/railwayapp/railway-skills/tree/main/plugins/railway/skills/database
Command: npx skills add https://github.com/railwayapp/railway-skills --skill database-railwayapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Add official Railway database services to projects to simplify provisioning of common databases and their wiring.

Core Features & Use Cases

  • Check for existing databases before creating to avoid duplicates.
  • Deploy pre-configured templates for PostgreSQL, Redis, MySQL, and MongoDB with volumes, networking, and connection variables.
  • Wire connection strings into other services so apps can start using the database immediately.

Quick Start

Fetch the appropriate template (e.g., PostgreSQL), deploy it to the project, and wire the resulting connection variable into your backend service.

Frequently Asked Questions about database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Railway database for my project?

The database Skill checks your existing Railway project for duplicate databases before deploying. It prevents provisioning conflicts by verifying if a matching PostgreSQL, Redis, MySQL, or MongoDB instance already exists.

How do I wire connection variables into my Railway services?

Yes, you can deploy MongoDB on Railway using the database Skill. It supports official MongoDB templates alongside PostgreSQL, Redis, and MySQL, provisioning the instance with required volumes and connection variables.

What's the best way to add PostgreSQL to a Railway project?

The best way to add PostgreSQL is using the database Skill to fetch and deploy the official PostgreSQL template. This pre-configures volumes, networking, and connection variables, then wires them into your existing services for immediate use.

Do I need to manually configure networking when deploying a Railway database?

No, you do not need to manually configure networking when deploying a Railway database. The database Skill deploys pre-configured templates that automatically handle volumes, networking, and connection variable wiring for PostgreSQL, Redis, MySQL, and MongoDB.