---
title: "Deploy MariaDB"
description: "Template mariaDB and Adminer"
category: "Other"
url: https://railway.com/deploy/ZJZedY
---

# Deploy MariaDB

Template mariaDB and Adminer

**[Deploy MariaDB on Railway](https://railway.com/template/ZJZedY)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/ZJZedY/manifest.json

- **Creator:** ulearna technologies
- **Category:** Other
- **Total deploys:** 30

## Template content

### mariadb

- **Source:** Aissaoui-Ahmed/mariadb

### Adminer

- **Source:** Aissaoui-Ahmed/mariadb
- **Public domain:** Yes

## Documentation

#### **Steps to Install the Template**

1. **Sign in to Railway**
   - Go to [Railway](https://railway.app) and log in to your account.

2. **Create a New Project**
   - Click on **"New Project"** and select **"Start From Template"**.

3. **Search for the Template**
   - Find the template for MariaDB and Adminer. If you don't see it, you can create a custom setup with the necessary services.

4. **Configure Environment Variables**
   - Once the project is set up, navigate to the **"Environment Variables"** section.
   - Add the following variables to configure MariaDB:

     | Variable Name       | Description                     |
     |---------------------|---------------------------------|
     | `MYSQL_ROOT_PASSWORD` | The root password for MariaDB. |
     | `MYSQL_DATABASE`      | The default database name.     |
     | `MYSQL_USER`          | The database user.             |
     | `MYSQL_PASSWORD`      | The password for the database user. |

   - Replace the placeholders with your desired values:
     ```
     MYSQL_ROOT_PASSWORD=
     MYSQL_DATABASE=
     MYSQL_USER=
     MYSQL_PASSWORD=
     ```

5. **Deploy the Template**
   - After setting up the environment variables, click **"Deploy"** to start the project.
   - Railway will provision MariaDB and Adminer as part of your project.

6. **Access Adminer**
   - Once the deployment is complete, locate the Adminer service URL from your Railway dashboard.
   - Open the Adminer URL in your browser and use the credentials you set up in the environment variables to log in.

---

#### **Tips**
- Use a strong password for `MYSQL_ROOT_PASSWORD` and `MYSQL_PASSWORD` to enhance security.
- Regularly back up your MariaDB database to prevent data loss.
- Customize additional Railway configurations if needed (e.g., project domains or resources).


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/ZJZedY
