Persistence MapDB and MySQL simultaneous problems

Hi there,

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?

Thanks a lot

What openHab version do you use?
Are there any errors in the log?

…and how did you install MySQL (via addons.cfg or PaperUI).

check your \OPENHABIANPI\openHAB-share\openhab2-userdata\config\org\openhab\addons.config


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 :slight_smile:

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.

Which sounds like the effects seen by @tak73.

Thanks to all.

solution was: modifying conf folder, not the userdata !!!