Can not connect the MySQL
fre2d0m
PROOP

2 years ago

1. Database HOST: Private network domain, was rejected

2. Database HOST: Public network domain, resolved to a 100.*.*.* , rejected (the public network is 35.213.135.* )

3. Database HOST: Public network IP (35.213.135. *), still error, Access denied for user 'root'@'100.64.0.3' (using password: YES)

By the way, I have seen a lot of problems that the database cannot be connected, but it has not been solved. My service has been stopped for 5 hours. If there is no solution after 8 hours, I will withdraw from the Railway and apply for a refund.

Unbearable response speed!

Solved

6 Replies

2 years ago

Is the MySQL service in the same project as your app's service?


fre2d0m
PROOP

2 years ago

Sure


2 years ago

What variables are you referencing?


fre2d0m
PROOP

2 years ago

In MySQL:

In App:


2 years ago

Please use the private network instead.


fre2d0m
PROOP

2 years ago

The problem has been found, the database password does not match the password in the environment variable, my application has been using the wrong password in the environment variable in the connection. Your colleague has reworked the password for me, so we're ready to connect


Status changed to Solved ray-chen over 1 year ago


Loading...