1- I have set the environnmental vars in the .bash_profile
2- I have created the metabase.service :
[Unit]
Description=Metabase
[Service]
Environment=MB_DB_TYPE=mysql
Environment=MB_DB_DBNAME=metabase
Environment=MB_DB_PORT=3306
Environment=MB_DB_USER=
Environment=MB_DB_PASS=
Environment=MB_DB_HOST=localhost
Environment=MB_EMOJI_IN_LOGS=false
ExecStart=/usr/bin/java -jar /metabase/metabase.jar
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=metabase
[Install]
WantedBy=multi-user.target
3- I have created the database metabase on my mysql server
4- I have deleted the H2 bases
5- I’have started the metabase service
It works !!!
Thanks for your help