MySQL
Deploy a MySQL database service
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