Service Restart & Default DB

I can’t start the metabase service with mydb after restarting service
DB: Mysql
Version : Metabase 0.36.0

to start metabase, I’m using that;

export MB_DB_CONNECTION_URI=“mysql://”

java -jar metabase.jar

After that, if I close the linux console window,embedded jetty server and metabase is shutting down.
When I restart the service, I see the sample dataset (h2 database), not connecting to mysql

I have to use above command again to start with mysql. What should I do ?

You’re not running it as a service.
This should help:

Ok, thank you so much ! It works now