+
View MariaDB export and import instructions
+
+If the app uses a MariaDB database, we need to make a backup and restore that backup to the new app's database.
+
+:::note[Requirements]
+
+Make sure you have `adminer` installed, as we'll be using it to make a backup and to restore the database. It's a TrueCharts app from the stable train. You can install it with all default settings, and it will work.
+
+:::
+
+### Configure database connections in adminer
+
+To get the MariaDB credentials from each install the easiest way (until a script does this) is logging into the main container shell and typing `env`, which pulls down the list of `environment variables` used by the container, including the `database credentials`.
+
+
+
+Repeat the same for the "new" app
+
+
+
+### Create database Backup
+
+Login to `adminer` using the 4 values highlighted in red above. For most users it'll be `appname-mariadb.ix-appname.svc.cluster.local:3306` or in this case `photoprism-mariadb.ix-photoprism.svc.cluster.local:3306`
+
+
+
+Click `Export`, choose a compression output (gzip) and press `export`
+
+
+
+### Restore database backup
+
+Now you login to `adminer` with the "new" app
+
+
+
+Click `Import`, then `Choose Files`, upload your backup and then click `Execute`
+
+
+
+
+