Recorder and maria DB error

I’m trying to move the logfile to a mariadb on my synology nas.

I first got an error that mysql was not found. After installing this I get the following error:

ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: libmariadbclient.so.18: cannot open shared object file: No such file or directory (retrying in 3 seconds)

Found some similar errors but the solutions didn’t work

recorder setting:

recorder:
db_url: mysql://ha_user:[email protected]:3307/ha_db?charset=utf8

I used the following guide:

when trying to install this dependancy:

sudo apt-get install libmysqlclient-dev

I get the error that i dont have the rights? Is this dependancy needed?