All Templates / Storage

MySQL

MySQL

Deploy a MySQL database service

Deploy MySQL

MySQL

mysql:9

Just deployed

/var/lib/mysql

Overview

MySQL database deployed with the official Docker image.

Start Command

The MySQL container deployed from this template is started with the command below, to disable Async IO, binary logging, and server events, which helps to reduce usage and cost:

docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0

How to use

Reference the MYSQL_URL variable to connect to the MySQL database (e.g. ${{MySQL.MYSQL_URL}}) from another service in your project.

Connecting externally

Connect to the database from outside Railway using the TCP Proxy.

In a terminal, for example:

mysql -h PROXY_DOMAIN -P PROXY_PORT -u root -p

Template Content

MySQL

mysql:9
Deploy Now

Details

Railway Templates

Created on Sep 7, 2023

44639 total projects

33517 active projects

100% success on recent deploys

Storage



More templates in this category

View Template
ReadySet

ReadySet

A lightweight caching engine for Postgres


Milo

View Template
EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


Ajit Krishna

View Template
Apache Kvrocks

Apache Kvrocks

A drop-in replacement for Redis to store data on a volume.


Bram