how big is your
how did you deploy openhab2-addons? (using apt or manually?)
how did you install
persistence-jdbc-mysql Add-on? (using PaperUI?)
Addons should not be uninstalled after restart.
You shouldn’t have to edit any file.
When you install an addon from PaperUI, the following config file is updated automatically for you and persists the changes:
You should NOT modify this file. It is managed by the OH2 system.
Users can modify manually the source config file in
BUT… if you start using this file, you need to manage your Add-ons ONLY from there. Any changes that you do via the PaperUI (un/install Addons) will not persist a service restart.
Check if the
persistence = line is un-commented and empty. This would explain why the addon is getting uninstalled on restart (because the addons.cfg tells the OH2 system to install nothing with regards to persistence addons).
Best way: comment out everything in addons.cfg and use PaperUI to manage your Add-ons.