I’m using both persistence MapDB and MySQL simultaneous, MapDB stores the system-data (items/status) and MySQL stores operating data (e.g. pv-data, power usage, temperatures,…) to use for statistics or charts.
It works fine, but when i restart the openHAB-system, installed on Raspi3, the MySQL Persistence Add-on is deinstalled by itself. Then i have to install the Persistence Add-on again!
Anybody knows an explanation or solution?
this is (correctly) the “destination”
the “source” is OPENHAB_CONF/services/addons.cfg (there, it should be without quotes: persistence = mapdb,mysql)
in general, we should be modifying stuff in the conf folder, not the userdata
For example: If you have persistence = mapdb only set in addons.cfg and modify addons.config to add both, on the next OH2 service restart, addons.cfg settings will overwrite the addons.config settings.