Connect to Railway
Learn how to connect your Railway MySQL database to VexiData for natural language querying and dashboard creation.
Connect your Railway MySQL database to VexiData for natural language querying and dashboard creation. Connection takes about 2 minutes.
Connect Railway to VexiData
Click to play video
Prerequisites
- A VexiData account (free tier available)Create account
- A Railway account with a MySQL databaseRailway
- Access to your Railway project dashboard
Connection Steps#
Log in to Railway
Access your Railway account at railway.app and navigate to your project.
Select Your MySQL Service
Click on your MySQL service within the project to view its details.
Get Connection Details
Go to the Connect tab (or Variables tab) and find:
• MYSQLHOST: Your database host
• MYSQLPORT: The port (usually a non-standard port like 12345)
• MYSQLDATABASE: Your database name
• MYSQLUSER: Your database username (usually root)
• MYSQLPASSWORD: Your database password
Connect in VexiData
In VexiData, go to Data Sources from the menu, then select MySQL under the Add New Data Source section.
Display Name: My Railway Database
Host: your-railway-host
Port: 12345 (use the port from Railway)
Database: railway
Username: root
Password: your_database_passwordTest and Save
Click Test & Save Connection. Once successful, you can start querying your Railway data!
Railway Uses Non-Standard Ports
Railway assigns a random port to your MySQL service. Make sure to use the exact port shown in your Railway dashboard, not the standard MySQL port (3306).