How to Connect Your Railway MySQL Database to Indiequery

Last updated: November 21, 2025

Connect your Railway MySQL database to Indiequery to query and explore data through a web interface. No desktop apps, no SSH. Just grab your connection details from Railway and connect in minutes.

Get Your Railway Connection Details

Log into your Railway dashboard at railway.app and navigate to your MySQL service. Click the Variables tab to see your connection variables.

Railway generates these connection variables for you:

  • MYSQLHOST - Database hostname (proxy domain ending in .proxy.rlwy.net)
  • MYSQLPORT - Proxy port number
  • MYSQLUSER - Username (usually root)
  • MYSQLPASSWORD - Password
  • MYSQLDATABASE - Database name (default is railway)

Railway also provides full connection URLs (DATABASE_PUBLIC_URL for external connections and DATABASE_URL for internal Railway services), but you'll need the individual values to connect to Indiequery.

Connect to Indiequery

Go to app.indiequery.com and click Add Database Connection. Enter your connection details from the Variables tab:

  1. Host - Copy MYSQLHOST (the proxy domain ending in .proxy.rlwy.net)
  2. Port - Copy MYSQLPORT (from TCP Proxy, not 3306)
  3. Database - Copy MYSQLDATABASE (default is railway)
  4. Username - Copy MYSQLUSER (usually root)
  5. Password - Copy MYSQLPASSWORD
  6. Keep "Require SSL" checked
  7. Name your connection (e.g., "Railway Production")
  8. Click Add Connection

Indiequery tests the connection automatically. Once successful, start querying.

Use the Right Connection URL

Railway provides two connection URLs. For reference, always use details from DATABASE_PUBLIC_URL for Indiequery - the internal URL won't work from outside Railway.

DATABASE_URL (Internal) only works within Railway and uses a private domain. DATABASE_PUBLIC_URL (External) works from anywhere and uses a proxy domain ending in .proxy.rlwy.net.

Common Connection Issues

"Connection timed out"

Use connection details from DATABASE_PUBLIC_URL, not DATABASE_URL. Verify TCP Proxy is enabled in Settings → Networking, and use the proxy port from TCP Proxy settings, not port 3306.

"SSL connection required"

Railway requires SSL. Keep "Require SSL" checked in Indiequery.

"Authentication failed"

Copy MYSQLPASSWORD carefully from the Variables tab. Passwords may contain special characters, so copy directly from Railway.

"Database does not exist"

Check the MYSQLDATABASE value. The default is railway. Database names are case-sensitive.

Next Steps

Once connected:

  • Browse database schema and tables
  • Run SQL queries with autocomplete
  • Create visualizations from results
  • Save and reuse queries
  • Build dashboards
  • Share results publicly

Head to app.indiequery.com and start exploring your Railway database.