database
kidaucode
HOBBYOP

25 days 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.

$10 Bounty

9 Replies

I assume you're able to authenticate into the database just fine?


0x5b62656e5d

I assume you're able to authenticate into the database just fine?

kidaucode
HOBBYOP

25 days ago

yes sir


By localhost, are you connecting to the same database in Railway? Or is that a locally hosted database?


kidaucode
HOBBYOP

25 days 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?

kidaucode
HOBBYOP

25 days 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


darseen
HOBBYTop 5% Contributor

25 days 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?

kidaucode
HOBBYOP

25 days ago

yes!


darseen
HOBBYTop 5% Contributor

25 days 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.

kidaucode
HOBBYOP

25 days ago

Ok I'm doing, and I will let you know the result


Loading...