The Railway MySQL database service allows you to provision and connect to a MySQL database with zero configuration.
There are two ways to connect to a MySQL database:
- Add a Reference Variable to a service
railway connectto start a
The following variables can be referenced in your services:
Connect to your MySQL container using your library of choice and supplying the appropriate environment variables.
The MySQL database service uses the mysql:8 docker image.
At the moment it is not possible to change the variables for the MySQL database service.
Was this page helpful?
Edit this file on GitHub