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

More templates in this category

New

ReadySet

ReadySet

A lightweight caching engine for Postgres


0

New

Flare

Flare

A modern, lightning-fast file sharing platform built for self-hosting


0

New

EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


0