How to upgrade MariaDB 10.3 to 10.6 in RHEL8 linux?

Has anyone successfully upgraded MariaDB from 10.3 to 10.6 on RHEL8 Linux? My database stops working after the update. Does anyone have a walkthrough on how to update the database to version 10.6 so that everything works properly?

Better to remain with official and do with the cyberpanel update.

Unfortunately the official/default is 10.3, despite it officially being said that CyberPanel should install 10.5 by default (here and elsewhere). I created a feature request for it: Include latest version of mariadb 10.6 in default build