nodejs backend cannot connet to mysql on railway
jillhepo
FREEOP

3 months ago

this is my logs: Starting Container

2025-11-25 03:08:18+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.4.0-1.el9 started.

2025-11-25 03:08:19+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

2025-11-25 03:08:19+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.4.0-1.el9 started.

2025-11-25 03:08:19+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 9.4.0-1.el9 started.

'/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

2025-11-25T03:08:19.387176Z 0 [System] [MY-015015] [Server] MySQL Server - start.

2025-11-25T03:08:19.508643Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 9.4.0) starting as process 1

2025-11-25T03:08:19.508660Z 0 [System] [MY-015590] [Server] MySQL Server has access to 2 logical CPUs.

2025-11-25T03:08:19.508669Z 0 [System] [MY-015590] [Server] MySQL Server has access to 999997440 bytes of physical memory.

2025-11-25T03:08:19.515525Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

2025-11-25T03:08:20.651782Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

2025-11-25T03:08:21.026670Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.

2025-11-25T03:08:21.026710Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.

2025-11-25T03:08:21.031006Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.

2025-11-25T03:08:21.107123Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '9.4.0' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.

$10 Bounty

2 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


3 months ago

Uh oh spaghettio spaghetti emojispaghetti emojispaghetti emojispaghetti emojispaghetti emojispaghetti emoji

Anyways. What IP are you using to connect to MySQL? Internal IP?


Loading...