Connect a Postgres or MySQL databased hosted on Railway

Railway supports both Postgres and MySQL databases. The instructions are the same for both. To get started sign in to Railway and select the project that contains your database.

Finding connection details

  1. Select your database from the project home screen.
  2. Once viewing the database, click Connect in the tab bar.
  3. Click Show to the right of Postgres Connection URL.
  4. Within Equals click Use connection string instead and paste the connection string, with the password shown, from Railway.

You should now be able to connect to your database from Equals.

Enabling access from our IP

Railway does not support limiting inbound connections by IP address and so no further action is required beyond the steps above.