4 months ago
Hello,
I am experiencing a problem with my database. I changed the password, and since then, my data is no longer appearing. However, everything works fine on localhost.
Could you please tell me how to resolve this issue?
Thank you in advance.
9 Replies
0x5b62656e5d
I assume you're able to authenticate into the database just fine?
4 months ago
yes sir
4 months ago
By localhost, are you connecting to the same database in Railway? Or is that a locally hosted database?
4 months ago
No, the database is not hosted locally.
It is the same database hosted by Railway that I use both locally and in production.
On localhost, when I start the server, my data works correctly. I am using the same DATABASE_URL (credentials).
However, in production, it does not work
0x5b62656e5d
By localhost, are you connecting to the same database in Railway? Or is that a locally hosted database?
4 months ago
No, the database is not hosted locally.
It is the same database hosted by Railway that I use both locally and in production.
On localhost, when I start the server, my data works correctly. I am using the same DATABASE_URL (credentials).
However, in production, it does not work
4 months ago
Did you redeploy the service that is using the DATABASE_URL after you changed the password?
darseen
Did you **redeploy** the service that is using the `DATABASE_URL` after you changed the password?
4 months ago
yes!
4 months ago
Try removing the DATABASE_URL variable and add it again, then redeploy. It might be using the old credentials.
darseen
Try removing the `DATABASE_URL` variable and add it again, then redeploy. It might be using the old credentials.
4 months ago
Ok I'm doing, and I will let you know the result
