RestoreOnStartup fails when rebooting

I use mysqld to persist my values… and that usually works just fine…

However… every time I reboot my PI openhab fails to restore my values…
If I then just restart the openhab service, the values comes in just fine…

So I figured maybe mysqld aren’t ready when openhab wants to read and added this to the service
(/usr/lib/systemd/system/openhab2.service):

After=network-online.target mysql.target

But still no luck … no values at reboot…

Greatful for any ideas!