Mysql db gone
thbe
HOBBYOP

10 months ago

Similar to some thread read here, mysql data & db users is gone from the following service:

https://railway.com/project/5bf4c0e8-5b2a-4e78-8962-90d6faa6dddd/service/d611bbe9-6f64-44fe-b03c-0f3be2e93943/data?environmentId=1d436240-e373-4121-9016-0d88b20f48eb

Thank for your support

Solved

5 Replies

chandrika
EMPLOYEE

10 months ago

Hi there,

Looking at your services it seems you have the mount path set incorrectly.

It's set to this /data in your volume currently and as it was incorrectly set, the data was being written to ephemeral storage which isn't persistent and is wiped on redeploy.


Status changed to Awaiting User Response Railway 10 months ago


thbe
HOBBYOP

10 months ago

Hello,

Thanks for your response.
I have always used the default configuration for the mounting path. Should I change it to something else?


Status changed to Awaiting Railway Response Railway 10 months ago


10 months ago

You should change the mounting path to /var/lib/mysql


Status changed to Awaiting User Response Railway 10 months ago


itsrems

You should change the mounting path to /var/lib/mysql

thbe
HOBBYOP

10 months ago

update done but now impossible to connect

Database Connection spins forever

Attachments


Status changed to Awaiting Railway Response Railway 10 months ago


thbe

update done but now impossible to connectDatabase Connection spins forever

thbe
HOBBYOP

10 months ago

It's ok now, the db name had changed.


Status changed to Solved thbe 10 months ago


Loading...