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
44639 total projects
33517 active projects
100% success on recent deploys
Storage
More templates in this category