Metabase by default uses
gets important when you have loads of data there (let's say hundreds of questions and tens of dashboards).
The safest way for production is to migrate this data to MySQL. It makes
The last command will run metabase and forces it to migrate data to MySQL. In case needed create
#metabase #migration #H2 #mysql
H2 Database
for its internal usage and storing questions and dashboards that you are created. When you want to move from one host to another it can be tricky and it may crash! Here you will lose your dashbaords and your containers. This mattergets important when you have loads of data there (let's say hundreds of questions and tens of dashboards).
The safest way for production is to migrate this data to MySQL. It makes
Metabase
to use MySQL as its backend not H2 Database. To migrate your data from current working H2 DB of Metabase you need to set following variables first:export MB_DB_TYPE=mysql
export MB_DB_DBNAME=metabase
export MB_DB_PORT=3306
export MB_DB_USER=<username>
export MB_DB_PASS=<password>
export MB_DB_HOST=localhost
java -jar metabase.jar load-from-h2
The last command will run metabase and forces it to migrate data to MySQL. In case needed create
metabase
database in mySQL with sufficient privileges. It should come up safely with no much headache. After moving data remove you *.db
metabase h2 DB file.#metabase #migration #H2 #mysql