Deploy MySQL 9.7 LTS

Single-node MySQL 9.7 LTS database, ready to deploy

Deploy MySQL 9.7 LTS

Just deployed

/var/lib/mysql

Deploy and Host MySQL 9.7 LTS on Railway

MySQL 9.7 LTS is a single-node MySQL 9.7 LTS database running on the official mysql:9.7.4 image, ready to deploy on Railway. It provides a plain database service with authentication on and a persistent volume at /var/lib/mysql, using private networking only, so other services in the same project connect privately on port 3306.

Why Deploy

Deploy this template to get a current MySQL 9.7 LTS database without upgrading an older MySQL image yourself. It is a focused, single-node database: no bundled application, no replica set, and no managed backups to configure before you start.

About Hosting MySQL 9.7 LTS

This template contains no app code, no replica set, and no backups. The database restarts on failure, and data is stored on its persistent volume rather than in the container filesystem. The root password is generated at deploy time, and a default database named railway is created on first start; MYSQL_USER and MYSQL_PASSWORD are optional. The server runs with the same resource saving start flags as Railway's official MySQL template: native AIO off, binary logging off, performance schema off, and a 1G InnoDB buffer pool. Reference variables MYSQL_URL, MYSQLHOST, MYSQLPORT, MYSQLUSER, MYSQLPASSWORD, and MYSQLDATABASE are provided for services in the same project.

Common Use Cases

  • A standalone database for a Railway application that needs MySQL 9.7 LTS without bundling another service.
  • A private database for development or a small production workload where one node is sufficient and backups are managed separately.
  • A simple, auditable starting point for a MySQL deployment that can be extended with scheduled mysqldump exports or volume snapshots.

Dependencies for MySQL 9.7 LTS Hosting

This template has no other service dependencies. From another service in the same project, connect with MYSQL_URL. From outside the project, use a TCP proxy. Verified locally on 2026-11-03 and live on Railway on 2026-11-20: fresh deploys were checked end to end over a TCP proxy, MySQL 9.7.4 ready for connections, the railway database created at first start, the start flags confirmed in the running server's variables, an authenticated round trip, a wrong password rejected, and data intact after a service redeploy on the same volume. Test projects were deleted afterwards.


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
A PostgreSQL-based time-series database for analytics on Railway.

Rakit
1
View Template
Neo4j 2026.10 Community
Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

My Projects
0