Issue with MySQL Database Connection - "Database Connection" Status Not Loading
ricsi30001
FREEOP

10 months ago

I’m having trouble connecting my Discord bot to the MySQL database hosted on Railway. In the Railway dashboard, under the MySQL service, the "Database Connection" section is stuck on loading and never completes.

I have correctly set the environment variables (MYSQLHOST, MYSQLUSER, MYSQLPASSWORD, MYSQLDATABASE) based on the provided info. However, my application returns the error: mysql.connector.errors.ProgrammingError: 1046 (3D000): No database selected

This suggests that the database connection is not fully established or the database is not selected properly.
Also, any advice on how to fix the "Database Connection" loading issue would be greatly appreciated.

Closed

0 Replies

Status changed to Closed itsrems 10 months ago


Loading...