All Templates / Storage
MySQL
Deploy a MySQL database service
MySQL
mysql:9
Just deployed
/var/lib/mysql
MySQL database deployed with the official Docker image.
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
Reference the MYSQL_URL
variable to connect to the MySQL database (e.g. ${{MySQL.MYSQL_URL}}
) from another service in your project.
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:9Details
Railway Templates
Created on Sep 7, 2023
68636 total projects
52933 active projects
96% success on recent deploys
Storage
More templates in this category
Flare
A modern, lightning-fast file sharing platform built for self-hosting
FlintSH's Projects
17
EdgeDB
EdgeDB template based on their Docker deployment guide
Ajit Krishna's Projects
41