@idflorin
Good afternoon, Sir.
Have you fully backed up your database to 'your database name.sql'?
If you already have a backup of MySQL, do the following to uninstall MySQL MariaDB.
!!!!!!!!! Please note that this operation will completely delete MySQL and cannot be restored. Please backup MySQL by any method before you operate!!
MySQL > uninstall MySQL from SSH
'rm -rf /www/server/mysql'
After a successful uninstall, re-install MySQL MariaDB in compile mode to use the latest version.