Mysql db gone
thbe
HOBBYOP

a year 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

a year 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 about 1 year ago


thbe
HOBBYOP

a year 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 about 1 year ago


a year ago

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


Status changed to Awaiting User Response Railway about 1 year ago


nico

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

thbe
HOBBYOP

a year ago

update done but now impossible to connect

Database Connection spins forever

Attachments


Status changed to Awaiting Railway Response Railway about 1 year ago


thbe

update done but now impossible to connect ![](https://station-server.railway.com/attachments/att_01jvm7w52vfajs4spbfx55hja7) Database Connection spins forever

thbe
HOBBYOP

a year ago

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


Status changed to Solved thbe about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...